Always filter attribute filters based on price filter (https://github.com/woocommerce/woocommerce-blocks/pull/1390)
This commit is contained in:
parent
80d76944cc
commit
a4be92ec15
|
@ -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,
|
||||
},
|
||||
} );
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue