Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Use setProductRatingsQuery to reset the filter when Apply Button is e…
Browse files Browse the repository at this point in the history
…nabled (#8374)
  • Loading branch information
tjcafferkey authored Feb 2, 2023
1 parent 779409a commit ecc0e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/blocks/rating-filter/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ const RatingFilterBlock = ( {
<FilterResetButton
onClick={ () => {
setChecked( [] );
setProductRatings( [] );
setProductRatingsQuery( [] );
onSubmit( [] );
} }
screenReaderLabel={ __(
Expand Down

0 comments on commit ecc0e19

Please sign in to comment.