mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Ensure there is not only global filters
This commit is contained in:
parent
7e58b9a052
commit
76beddb7bb
@ -476,7 +476,8 @@ function discoverController(
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////// WAZUH ///////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
const filters = queryFilter.getFilters();
|
||||
let filters = queryFilter.getFilters();
|
||||
filters = Array.isArray(filters) ? filters.filter(item => item && item.$state && item.$state.store && item.$state.store === 'appState') : [];
|
||||
if(!filters || !filters.length) return;
|
||||
discoverPendingUpdates.removeAll()
|
||||
discoverPendingUpdates.addItem($state.query,queryFilter.getFilters());
|
||||
|
Loading…
Reference in New Issue
Block a user