Skip to content

Commit

Permalink
Fix: reinit form filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault authored and github-actions[bot] committed Oct 24, 2024
1 parent 361856e commit 79c4dce
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 79c4dce

Please sign in to comment.