Skip to content

Commit

Permalink
Update fleet_integration_event_filters_card.tsx
Browse files Browse the repository at this point in the history
review changes
  • Loading branch information
ashokaditya committed Jan 25, 2022
1 parent 4f5be8b commit a08472e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,7 @@ export const FleetIntegrationEventFiltersCard = memo<{
try {
const summary = await eventFiltersApi.getSummary(parsePoliciesToKQL([policyId, 'all']));
if (isMounted.current) {
setStats({
total: summary.total,
windows: 0,
linux: 0,
macos: 0,
});
setStats(summary);
}
} catch (error) {
if (isMounted.current) {
Expand Down

0 comments on commit a08472e

Please sign in to comment.