mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Restored search bar for reports
This commit is contained in:
parent
ca5603e795
commit
8148346d6e
@ -65,11 +65,13 @@ class VisHandlers {
|
||||
});
|
||||
|
||||
if(this.list && this.list.length) {
|
||||
const visualization = this.list[0].vis;
|
||||
// Parse applied filters for the first visualization
|
||||
const filters = this.list[0].vis.API.queryFilter.getFilters();
|
||||
const filters = visualization.API.queryFilter.getFilters();
|
||||
|
||||
// Parse current time range
|
||||
const { from, to } = this.list[0].vis.API.timeFilter.getTime();
|
||||
const { from, to } = visualization.API.timeFilter.getTime();
|
||||
const { query } = visualization.searchSource._fields.query;
|
||||
|
||||
Object.assign(appliedFilters, {
|
||||
filters,
|
||||
@ -77,7 +79,7 @@ class VisHandlers {
|
||||
from: dateMath.parse(from),
|
||||
to: dateMath.parse(to)
|
||||
},
|
||||
searchBar: false,
|
||||
searchBar: query,
|
||||
tables
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user