diff --git a/assets/src/legacy/filter.js b/assets/src/legacy/filter.js index e6815e63e0..6301ae33af 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;