diff --git a/assets/src/legacy/filter.js b/assets/src/legacy/filter.js index 68dcdfb179..64c58a18b6 100644 --- a/assets/src/legacy/filter.js +++ b/assets/src/legacy/filter.js @@ -1004,6 +1004,8 @@ var lizLayerFilterTool = function () { function deactivateFilter() { var layerId = globalThis['filterConfigData'].layerId; + globalThis['filterConfigData'].filter = undefined; + // Deactivate all triggers to avoid unnecessary requests // and then empty all the input values globalThis['filterConfigData'].deactivated = true; @@ -1122,6 +1124,8 @@ var lizLayerFilterTool = function () { layerfeatureremovefilter: function () { var layerId = globalThis['filterConfigData'].layerId; + globalThis['filterConfigData'].filter = undefined; + // We need to reset the form // Deactivate all triggers to avoid unnecessary requests globalThis['filterConfigData'].deactivated = true;