From a947bc1c7cf9d5ca96b79ab1a1b512a40115fc8e Mon Sep 17 00:00:00 2001 From: DvoraShechter1 Date: Thu, 31 Oct 2024 12:33:26 +0200 Subject: [PATCH] Removing unnecessary conversion. Signed-off-by: DvoraShechter1 --- .../application-detail-drawer.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx b/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx index 93a5ed18e..ab7b2c9d1 100644 --- a/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx +++ b/client/src/app/pages/applications/components/application-detail-drawer/application-detail-drawer.tsx @@ -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"; @@ -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 );