From 08e3c6368aa25adc9e12401c44371f114180be25 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 12 Nov 2024 20:17:34 +0100 Subject: [PATCH] UX: fix #2249 --- src/UI/Popup/AddNewPoint/AddNewPoint.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte index 0c42234c7..84d41808a 100644 --- a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte +++ b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte @@ -64,7 +64,7 @@ onDestroy( globalFilter.addCallbackAndRun((globalFilter) => { console.log("Global filters are", globalFilter) - _globalFilter = globalFilter ?? [] + _globalFilter = globalFilter?.filter(gf => gf.onNewPoint !== undefined) ?? [] }) ) $: {