Skip to content

Commit

Permalink
Merge pull request #4905 from nboisteault/fix-reinit-form-filter
Browse files Browse the repository at this point in the history
Fix: reinit form filter
  • Loading branch information
rldhont authored Oct 24, 2024
2 parents 6ff6998 + ae3f4f5 commit 3bb413d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/src/legacy/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3bb413d

Please sign in to comment.