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

Method to remove applied filters. #30

Open
msaifudeen opened this issue Jul 22, 2022 · 2 comments
Open

Method to remove applied filters. #30

msaifudeen opened this issue Jul 22, 2022 · 2 comments

Comments

@msaifudeen
Copy link

Hey Team,

let test = new searchQuery();
test.applyFilter({ filter values});

is there any specific method to remove the applied filter or empty the array later.

Thanks,

@Fifciu
Copy link
Contributor

Fifciu commented Jul 22, 2022

Hello. Not really.

The whole use-case of storefront-query-builder was to build query from scratch in abstract way but only once. If you need this method you could add it in your own fork. You would need to make changes inside SearchQuery.ts file. Just add method with logic opposite to applyFilter.

@msaifudeen
Copy link
Author

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants