Add reset button in the editor for product attributer filter (https://github.com/woocommerce/woocommerce-blocks/pull/8285)

Co-authored-by: Niels Lange <info@nielslange.de>
This commit is contained in:
Roy Ho 2023-01-30 01:45:09 -08:00 committed by GitHub
parent 30a987a27a
commit 883d856c28
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ const AttributeFilterBlock = ( {
</div>
<div className="wc-block-attribute-filter__actions">
{ checked.length > 0 && ! isLoading && (
{ ( checked.length > 0 || isEditor ) && ! isLoading && (
<FilterResetButton
onClick={ () => {
setChecked( [] );