From 6f37fc27e1303c362f298ca5e33010e5660c001a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 22 Nov 2021 13:42:09 +0000 Subject: [PATCH] Fix issue with not correctly removing dynamic filters when clearing all filters --- .../src/components/app/dynamic-filter/DynamicFilter.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/components/app/dynamic-filter/DynamicFilter.svelte b/packages/client/src/components/app/dynamic-filter/DynamicFilter.svelte index d471b3a021..92b78905ef 100644 --- a/packages/client/src/components/app/dynamic-filter/DynamicFilter.svelte +++ b/packages/client/src/components/app/dynamic-filter/DynamicFilter.svelte @@ -35,6 +35,8 @@ if (filters?.length) { const queryExtension = buildLuceneQuery(filters) addExtension?.($component.id, queryExtension) + } else { + removeExtension?.($component.id) } }