From ae3f4f56a78e9a76b9f0a245471ec38c3bd61679 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 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;