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) ?? [] }) ) $: {