Skip to content

Commit

Permalink
Fix offsite navigation editor component loading issue. (#46937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Jan 6, 2023
1 parent b630d7e commit fbd7da0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ const ListViewBlockContents = forwardRef(
getSelectedBlockClientId,
getLastInsertedBlocksClientIds,
} = select( blockEditorStore );
const lastInsertedBlocksClientIds =
getLastInsertedBlocksClientIds();
return {
blockMovingClientId: hasBlockMovingClientId(),
selectedBlockInBlockEditor: getSelectedBlockClientId(),
lastInsertedBlockClientId:
getLastInsertedBlocksClientIds()[ 0 ],
lastInsertedBlocksClientIds &&
lastInsertedBlocksClientIds[ 0 ],
};
},
[ clientId ]
Expand Down

1 comment on commit fbd7da0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in fbd7da0.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3854885810
📝 Reported issues:

Please sign in to comment.