From 7e9723fe8ef4e98f98efc710fb4c5b9f8c9d7edd Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 12 Dec 2024 09:35:52 -0500 Subject: [PATCH] Cleaned up code - Removed console.logs. - Removed commented out code. --- frontend/src/components/DrawerInterior.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/components/DrawerInterior.tsx b/frontend/src/components/DrawerInterior.tsx index e4383a14..111c0a53 100644 --- a/frontend/src/components/DrawerInterior.tsx +++ b/frontend/src/components/DrawerInterior.tsx @@ -176,13 +176,6 @@ export const DrawerInterior: React.FC = (props) => { ) : []; - // const severityFacet: any[] = facets['vulnerabilities.severity'] - // ? facets['vulnerabilities.severity'][0].data.sort( - // (a: { value: string }, b: { value: string }) => - // severityLevels.indexOf(a.value) - severityLevels.indexOf(b.value) - // ) - // : []; - console.log('facets', facets['vulnerabilities.severity']); const titleCaseSeverityFacet = facets['vulnerabilities.severity'] ? facets['vulnerabilities.severity'][0].data.map( @@ -205,7 +198,6 @@ export const DrawerInterior: React.FC = (props) => { } ) : []; - console.log('titleCaseSeverityFacet', titleCaseSeverityFacet); const groupedData: GroupedData = titleCaseSeverityFacet .map((d: SeverityData) => { @@ -232,8 +224,6 @@ export const DrawerInterior: React.FC = (props) => { return acc; }, {}); - console.log('groupedData', groupedData); - const sortedSeverityFacets = Object.entries(groupedData) .map(([value, count]) => ({ value, count })) .sort((a, b) => { @@ -241,8 +231,6 @@ export const DrawerInterior: React.FC = (props) => { return order.indexOf(a.value) - order.indexOf(b.value); }); - console.log('sortedSeverityFacets', sortedSeverityFacets); - return (