From 70612f1c12ef69209205a29828694c16a9bbc177 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 5 Nov 2024 20:00:47 +0100 Subject: [PATCH] Fix: build --- src/Models/ThemeViewState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/ThemeViewState.ts b/src/Models/ThemeViewState.ts index 5ec6203ce..d3168508d 100644 --- a/src/Models/ThemeViewState.ts +++ b/src/Models/ThemeViewState.ts @@ -994,7 +994,7 @@ export default class ThemeViewState implements SpecialVisualizationState { }) - this.layerState.filteredLayers.get("favourite").isDisplayed.addCallbackAndRunD(favouritesShown => { + this.layerState.filteredLayers.get("favourite")?.isDisplayed?.addCallbackAndRunD(favouritesShown => { const oldGlobal = this.layerState.globalFilters.data const key = "show-favourite" if(favouritesShown){