Ensure there is not only global filters

This commit is contained in:
Jesús Ángel González 2018-05-15 18:06:46 +02:00
parent 7e58b9a052
commit 76beddb7bb

View File

@ -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());