From 80c536cefede0f1f8426120bc22c994e49f44b28 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Wed, 20 Jul 2022 12:23:47 +0200 Subject: [PATCH] Hide prefix and suffix in post terms (#42418) --- packages/block-library/src/post-terms/edit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-terms/edit.js b/packages/block-library/src/post-terms/edit.js index 996ccc1023ef6a..7e7d70ec2b8f18 100644 --- a/packages/block-library/src/post-terms/edit.js +++ b/packages/block-library/src/post-terms/edit.js @@ -40,6 +40,7 @@ export default function PostTermsEdit( { attributes, clientId, context, + isSelected, setAttributes, insertBlocksAfter, } ) { @@ -96,7 +97,7 @@ export default function PostTermsEdit( {
{ isLoading && } - { ! isLoading && hasPostTerms && ( + { ! isLoading && hasPostTerms && ( isSelected || prefix ) && (