diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index 22294661..2ca538b9 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -785,7 +785,7 @@ L.U.Map.include({ } advancedFilterKeys.forEach(property => { advancedFiltersFull[property] = []; - if (!filtersAlreadyLoaded) { + if (!filtersAlreadyLoaded || !this.getMap().options.advancedFilters[property]) { this.getMap().options.advancedFilters[property] = []; } });