Skip to content

Commit

Permalink
Check query context (#63237)
Browse files Browse the repository at this point in the history
Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org>
Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org>
  • Loading branch information
3 people authored and gutenbergplugin committed Jul 9, 2024
1 parent ab27993 commit 4ded8fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/bindings/post-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export default {
} );
},
canUserEditValue( { select, context, args } ) {
// Lock editing in query loop.
if ( context?.query || context?.queryId ) {
return false;
}

const postType =
context?.postType || select( editorStore ).getCurrentPostType();

Expand Down

0 comments on commit 4ded8fb

Please sign in to comment.