Skip to content

Commit

Permalink
[Slos] Fixes filter disappearing on reload (elastic#176171)
Browse files Browse the repository at this point in the history
## Summary

Fixes filter disappearing on reload !!

Filters when applied were disappearing on reload.
  • Loading branch information
shahzad31 authored Feb 2, 2024
1 parent 3a4ad77 commit 5b20552
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export function QuickFilters({ initialState: { tagsFilter, statusFilter }, onSta
grow: true,
title: STATUS_LABEL,
controlId: 'slo-status-filter',
exclude: statusFilter?.meta.negate,
exclude: statusFilter?.meta?.negate,
selectedOptions: getSelectedOptions(statusFilter),
existsSelected: Boolean(statusFilter?.query?.exists.field === 'status'),
existsSelected: Boolean(statusFilter?.query?.exists?.field === 'status'),
placeholder: ALL_LABEL,
});
await builder.addOptionsListControl(initialInput, {
Expand All @@ -75,8 +75,8 @@ export function QuickFilters({ initialState: { tagsFilter, statusFilter }, onSta
grow: false,
controlId: 'slo-tags-filter',
selectedOptions: getSelectedOptions(tagsFilter),
exclude: statusFilter?.meta.negate,
existsSelected: Boolean(tagsFilter?.query?.exists.field === 'slo.tags'),
exclude: statusFilter?.meta?.negate,
existsSelected: Boolean(tagsFilter?.query?.exists?.field === 'slo.tags'),
placeholder: ALL_LABEL,
});
return {
Expand Down

0 comments on commit 5b20552

Please sign in to comment.