Skip to content

Commit

Permalink
Removing unnecessary conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: DvoraShechter1 <[email protected]>
  • Loading branch information
DvoraShechter1 committed Oct 31, 2024
1 parent 1acde0e commit a947bc1
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import {
Ref,
Archetype,
TaskDashboard,
AnalysisRuleReport,
AnalysisIssueReport,
} from "@app/api/models";
import { COLOR_HEX_VALUES_BY_NAME } from "@app/Constants";
import { useFetchFacts } from "@app/queries/facts";
Expand Down Expand Up @@ -190,10 +188,7 @@ const TabDetailsContent: React.FC<{
const {
result: { data, total: totalReportCount },
} = issueReportsQuery;
const currentPageReports = data as (
| AnalysisRuleReport
| AnalysisIssueReport
)[];
const currentPageReports = data;
const [minor, critical] = fork(currentPageReports, (u) => u.effort <= 1).map(
(a) => a.length
);
Expand Down

0 comments on commit a947bc1

Please sign in to comment.