mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
fix(slo): search bar filters (#217702)
This commit is contained in:
parent
46b4e1fc6d
commit
b6de659199
1 changed files with 8 additions and 1 deletions
|
@ -35,7 +35,12 @@ export function QuerySearchBar({
|
|||
range,
|
||||
setRange,
|
||||
}: Props) {
|
||||
const { SearchBar } = useKibana().services.unifiedSearch.ui;
|
||||
const {
|
||||
unifiedSearch: {
|
||||
ui: { SearchBar },
|
||||
},
|
||||
data: dataService,
|
||||
} = useKibana().services;
|
||||
|
||||
const { control } = useFormContext<CreateSLOForm>();
|
||||
|
||||
|
@ -131,6 +136,8 @@ export function QuerySearchBar({
|
|||
};
|
||||
});
|
||||
|
||||
dataService.query.filterManager.setFilters(updatedFilters);
|
||||
|
||||
if (kqlQuerySchema.is(field.value)) {
|
||||
field.onChange({
|
||||
filters: updatedFilters,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue