Skip to content

Commit

Permalink
Site Editor: Don't trigger template ID resolution for multi-selected …
Browse files Browse the repository at this point in the history
…posts (#64254)


Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored Aug 5, 2024
1 parent 525f756 commit 396e470
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ function useResolveEditedEntityAndContext( { postId, postType } ) {
return undefined;
}

// Don't trigger resolution for multi-selected posts.
if ( postId && postId.includes( ',' ) ) {
return undefined;
}

const {
getEditedEntityRecord,
getEntityRecords,
Expand Down

0 comments on commit 396e470

Please sign in to comment.