mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
when adding filters, just add them
let the state watcher do the heavy lifting to de-dupe and merge filters
This commit is contained in:
parent
d029b348e0
commit
8bc5b66664
1 changed files with 1 additions and 5 deletions
|
@ -48,11 +48,7 @@ define(function (require) {
|
|||
globalState.filters = globalState.filters.concat(filters);
|
||||
} else if (appState) {
|
||||
if (!appState.filters) appState.filters = [];
|
||||
var mergeOptions = { disabled: true, negate: false };
|
||||
var appFilters = appState.filters.concat(filters);
|
||||
var merged = mergeAndMutateFilters(globalState.filters, appFilters, mergeOptions);
|
||||
globalState.filters = merged[0];
|
||||
appState.filters = merged[1];
|
||||
appState.filters = appState.filters.concat(filters);
|
||||
}
|
||||
|
||||
return saveState();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue