diff --git a/src/Logic/State/LayerState.ts b/src/Logic/State/LayerState.ts index 88bb50783..a2ca76292 100644 --- a/src/Logic/State/LayerState.ts +++ b/src/Logic/State/LayerState.ts @@ -130,8 +130,11 @@ export default class LayerState { public setLevelFilter(level?: string) { // Remove all previous const l = this.globalFilters.data.length + // Remove all global filters tagged 'levels this.globalFilters.data = this.globalFilters.data.filter((f) => f.id !== "level") if (!level) { + // Level is undefined - we thus only want to remove the global filter + // We've just done this above, but the listeners are not aware yet. Let's ping (if needed) and move on if (l !== this.globalFilters.data.length) { this.globalFilters.ping() } diff --git a/src/UI/InputElement/Helpers/FloorSelector.svelte b/src/UI/InputElement/Helpers/FloorSelector.svelte index 0713fda18..b0ee1da35 100644 --- a/src/UI/InputElement/Helpers/FloorSelector.svelte +++ b/src/UI/InputElement/Helpers/FloorSelector.svelte @@ -1,5 +1,4 @@