From 37fb5095532c2d60a59c71a009f234f22eab14db Mon Sep 17 00:00:00 2001 From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com> Date: Wed, 23 Jul 2025 22:22:58 +0530 Subject: [PATCH] fix:broken filter --- src/lib/components/filters/content.svelte | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/lib/components/filters/content.svelte b/src/lib/components/filters/content.svelte index c9f77e498..bb77b81b0 100644 --- a/src/lib/components/filters/content.svelte +++ b/src/lib/components/filters/content.svelte @@ -8,8 +8,8 @@ InputSelectCheckbox, InputDateTime } from '$lib/elements/forms'; - import { createEventDispatcher, onMount } from 'svelte'; - import { operators, addFilter, queries, type TagValue } from './store'; + import { onMount } from 'svelte'; + import { operators, addFilter, queries, tags } from './store'; import type { Column } from '$lib/helpers/types'; import type { Writable } from 'svelte/store'; import { TagList } from '.'; @@ -35,15 +35,8 @@ })); $: operator = operatorKey ? operators[operatorKey] : null; - $: { - columnId; - operatorKey = null; - } - $: isDisabled = !operator; - let localTags: TagValue[] = []; - onMount(() => { value = column?.array ? [] : null; if (column?.type === 'datetime') { @@ -62,12 +55,6 @@ queries.apply(); } } - - const dispatch = createEventDispatcher<{ - clear: void; - apply: { applied: number }; - }>(); - dispatch('apply', { applied: localTags.length });