Skip to content

Commit

Permalink
Check isMounted.current, not isMounted
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed May 17, 2023
1 parent d8698b3 commit fe881da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const MainContent = ( {
// We need to check isMounted because we never want to show the Link UI on initial render,
// as there's no way that a user interaction would have caused the Link UI to be shown from that state.
if (
isMounted &&
isMounted.current &&
lastInsertedBlockClientId &&
BLOCKS_WITH_LINK_UI_SUPPORT?.includes( insertedBlockName ) &&
! hasExistingLinkValue // don't re-show the Link UI if the block already has a link value.
Expand Down

0 comments on commit fe881da

Please sign in to comment.