From 1d30395ed9d795ebc437f0c0bfbc69d02f0570c9 Mon Sep 17 00:00:00 2001 From: Mario Santos Date: Mon, 8 Jul 2024 13:40:09 +0200 Subject: [PATCH] Check query context --- packages/editor/src/bindings/post-meta.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/editor/src/bindings/post-meta.js b/packages/editor/src/bindings/post-meta.js index aec890c5ceff87..0b46e58542a359 100644 --- a/packages/editor/src/bindings/post-meta.js +++ b/packages/editor/src/bindings/post-meta.js @@ -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();