Skip to content

Commit

Permalink
fix: enclose triggers actions query in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
logeekal committed Feb 16, 2023
1 parent 58390ad commit a91d5a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const AlertsTableComponent: FC<DetectionEngineAlertTableProps> = ({
if (!combinedQuery || combinedQuery.kqlError || !combinedQuery.filterQuery) {
return { bool: {} };
}
return JSON.parse(combinedQuery.filterQuery);
return { bool: { filter: JSON.parse(combinedQuery.filterQuery) } };
}, [combinedQuery]);

const isEventRenderedView = tableView === VIEW_SELECTION.eventRenderedView;
Expand Down

0 comments on commit a91d5a2

Please sign in to comment.