diff --git a/plugins/woocommerce-blocks/assets/js/blocks/attribute-filter/block.js b/plugins/woocommerce-blocks/assets/js/blocks/attribute-filter/block.js index cf06000f409..4365e4f5ef1 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/attribute-filter/block.js +++ b/plugins/woocommerce-blocks/assets/js/blocks/attribute-filter/block.js @@ -66,7 +66,7 @@ const AttributeFilterBlock = ( { shouldSelect: blockAttributes.attributeId > 0, } ); - const filterAvailableFilters = + const filterAvailableTerms = blockAttributes.displayStyle !== 'dropdown' && blockAttributes.queryType === 'and'; const { @@ -77,7 +77,10 @@ const AttributeFilterBlock = ( { taxonomy: attributeObject.taxonomy, queryType: blockAttributes.queryType, }, - queryState: filterAvailableFilters ? queryState : null, + queryState: { + ...queryState, + attributes: filterAvailableTerms ? queryState.attributes : null, + }, } ); /**