From 79c4dce0c31cd9774dcc5029eb9c83a2ab882d34 Mon Sep 17 00:00:00 2001 From: nboisteault Date: Wed, 23 Oct 2024 10:25:01 +0200 Subject: [PATCH] Fix: reinit form filter --- assets/src/legacy/filter.js | 4 ++++ 1 file changed, 4 insertions(+) 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;