Skip to content

Commit

Permalink
fix(security-insights): set filtered table data on initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
pc-bob committed Oct 30, 2024
1 parent b59b4b4 commit 1ef7f95
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ export const SecurityInsightsTable = () => {
);
const data = response.data as SecurityInsight[];
setTableData(data);
if (insightsStatusFilter) {
setFilteredTableData(
data.filter(entry => entry.state === insightsStatusFilter),
);
}
return data;
}, []);

Expand Down

0 comments on commit 1ef7f95

Please sign in to comment.