Skip to content

Commit

Permalink
Fix flyout filter reset after removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jennypavlova committed Sep 7, 2023
1 parent b194edc commit 57b43b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export const Expressions: React.FC<Props> = (props) => {
);

const onFilterChange = useCallback(
(filter: any) => {
setRuleParams('filterQueryText', filter || '');
(filter: string) => {
setRuleParams('filterQueryText', filter ?? '');
try {
setRuleParams(
'filterQuery',
Expand Down Expand Up @@ -257,7 +257,7 @@ export const Expressions: React.FC<Props> = (props) => {
preFillAlertCriteria();
}

if (!ruleParams.filterQuery) {
if (ruleParams.filterQuery === undefined) {
preFillAlertFilter();
}

Expand Down

0 comments on commit 57b43b6

Please sign in to comment.