From 7bdd30879b870406cf5ebf3a23edfc3fbeb52a47 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 7 Nov 2024 10:59:43 +0100 Subject: [PATCH] Fix: hide items if the layer is disabled and favourites is enabled --- src/Logic/FeatureSource/Sources/FilteringFeatureSource.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Logic/FeatureSource/Sources/FilteringFeatureSource.ts b/src/Logic/FeatureSource/Sources/FilteringFeatureSource.ts index 9a55a51d1..e38c811d4 100644 --- a/src/Logic/FeatureSource/Sources/FilteringFeatureSource.ts +++ b/src/Logic/FeatureSource/Sources/FilteringFeatureSource.ts @@ -30,6 +30,9 @@ export default class FilteringFeatureSource implements FeatureSource { upstream.features.addCallback(() => { self.update() }) + layer.isDisplayed.addCallback(() => { + self.update() + }) layer.appliedFilters.forEach((value) => value.addCallback((_) => {