From 6750e11df2327df59faffe61864bfc0e77fd33d8 Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Tue, 24 Sep 2024 09:17:48 -0500 Subject: [PATCH] Remove unused code --- src/lib/components/lines-and-dots/event-type-filter.svelte | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/lib/components/lines-and-dots/event-type-filter.svelte b/src/lib/components/lines-and-dots/event-type-filter.svelte index 6d9fbb7c9..43ef2c935 100644 --- a/src/lib/components/lines-and-dots/event-type-filter.svelte +++ b/src/lib/components/lines-and-dots/event-type-filter.svelte @@ -53,13 +53,6 @@ const onOptionClick = ({ value }) => { clearActiveEvents(); - if (value === 'none') { - $eventTypeFilter = []; - return; - } else if (value === 'all') { - $eventTypeFilter = defaultOptions; - return; - } $eventTypeFilter = $eventTypeFilter.some((type) => type === value) ? $eventTypeFilter.filter((type) => type !== value) : [...$eventTypeFilter, value];