Skip to content

Commit

Permalink
Update the loading state to account for bulk edits
Browse files Browse the repository at this point in the history
  • Loading branch information
louwie17 committed Dec 12, 2024
1 parent 6c629e6 commit b9ca481
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/edit-site/src/components/post-edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ function PostEditForm( { postType, postId } ) {
return {
record:
ids.length === 1 ? getEditedEntityRecord( ...args ) : null,
hasFinishedResolution: hasFinished(
'getEditedEntityRecord',
args
hasFinishedResolution: ids.every( ( id ) =>
hasFinished( 'getEditedEntityRecord', [
'postType',
postType,
id,
] )
),
records:
ids.length > 1
Expand Down

0 comments on commit b9ca481

Please sign in to comment.