Fix undefined error without refreshing page after creating advanced filters

This commit is contained in:
3st3ban3 2023-02-15 18:46:20 +01:00
parent 2221806b7e
commit ce17f8dfe0

View file

@ -785,7 +785,7 @@ L.U.Map.include({
} }
advancedFilterKeys.forEach(property => { advancedFilterKeys.forEach(property => {
advancedFiltersFull[property] = []; advancedFiltersFull[property] = [];
if (!filtersAlreadyLoaded) { if (!filtersAlreadyLoaded || !this.getMap().options.advancedFilters[property]) {
this.getMap().options.advancedFilters[property] = []; this.getMap().options.advancedFilters[property] = [];
} }
}); });