Skip to content

Commit

Permalink
Mobile - Link settings - Fix data not being saved when closing the bo…
Browse files Browse the repository at this point in the history
…ttom sheet (#27997)
  • Loading branch information
Gerardo Pacheco authored and guarani committed Jan 5, 2021
1 parent 3080d13 commit fce8e49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function LinkSettings( {

const { onHandleClosingBottomSheet } = useContext( BottomSheetContext );
useEffect( () => {
if ( ! onLinkCellPressed ) {
if ( onHandleClosingBottomSheet ) {
onHandleClosingBottomSheet( onCloseSettingsSheet );
}
}, [ urlInputValue, labelInputValue, linkRelInputValue ] );
Expand Down

0 comments on commit fce8e49

Please sign in to comment.