From b9ca4814a364228bb786921186636b9b31a28aea Mon Sep 17 00:00:00 2001 From: Lourens Schep Date: Thu, 12 Dec 2024 17:12:45 +0100 Subject: [PATCH] Update the loading state to account for bulk edits --- packages/edit-site/src/components/post-edit/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/edit-site/src/components/post-edit/index.js b/packages/edit-site/src/components/post-edit/index.js index 03bbb58c5ac0f..c0c7d9a2306a6 100644 --- a/packages/edit-site/src/components/post-edit/index.js +++ b/packages/edit-site/src/components/post-edit/index.js @@ -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