From 2679c197457e5fe8a5783d4a08469a02954f9ea9 Mon Sep 17 00:00:00 2001 From: karthick-murugan Date: Tue, 14 Jan 2025 13:09:40 +0530 Subject: [PATCH] Feedback updates --- packages/block-library/src/query-title/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/query-title/edit.js b/packages/block-library/src/query-title/edit.js index 43c12d096aa3be..3b739e2b20b4f9 100644 --- a/packages/block-library/src/query-title/edit.js +++ b/packages/block-library/src/query-title/edit.js @@ -105,7 +105,7 @@ export default function QueryTitleEdit( { dropdownMenuProps={ dropdownMenuProps } > showPrefix === false } + hasValue={ () => ! showPrefix } label={ __( 'Show archive type in title' ) } onDeselect={ () => setAttributes( { showPrefix: true } ) @@ -143,7 +143,7 @@ export default function QueryTitleEdit( { } > showSearchTerm === false } + hasValue={ () => ! showSearchTerm } label={ __( 'Show search term in title' ) } onDeselect={ () => setAttributes( { showSearchTerm: true } )