diff --git a/frontend/src/pages/Risk/VulnerabilityBarChart.tsx b/frontend/src/pages/Risk/VulnerabilityBarChart.tsx index db467a51..3cafd97d 100644 --- a/frontend/src/pages/Risk/VulnerabilityBarChart.tsx +++ b/frontend/src/pages/Risk/VulnerabilityBarChart.tsx @@ -80,8 +80,6 @@ const VulnerabilityBarChart = (props: { value: d.value }; }); - console.log('data', data); - console.log('titleCaseData', titleCaseData); // Group the data by severity level and "Other". Sum the values for each group. const groupedData = titleCaseData @@ -119,8 +117,6 @@ const VulnerabilityBarChart = (props: { return acc; }, {}); - console.log('groupedData', groupedData); - // Sort the data to ensure "N/A", "Low", "Medium", "High", and "Critical" appear in the desired order const sortedData = Object.entries(groupedData) .map(([id, value]) => ({ id, value })) diff --git a/frontend/src/pages/Vulnerabilities/Vulnerabilities.tsx b/frontend/src/pages/Vulnerabilities/Vulnerabilities.tsx index 33658e19..1f41b052 100644 --- a/frontend/src/pages/Vulnerabilities/Vulnerabilities.tsx +++ b/frontend/src/pages/Vulnerabilities/Vulnerabilities.tsx @@ -328,8 +328,7 @@ export const Vulnerabilities: React.FC<{ groupBy?: string }> = ({ if (severityLevels.includes(titleCaseSev)) { return titleCaseSev; } - console.log('severity', severity); - console.log('titleCaseSev', titleCaseSev); + if ( titleCaseSev === null || titleCaseSev === undefined || @@ -371,11 +370,6 @@ export const Vulnerabilities: React.FC<{ groupBy?: string }> = ({ }; }); - const vulnSeverities = vulnerabilities.map((vuln) => vuln.severity); - console.log('vulnSevs', vulnSeverities); - const vulRowsSeverities = vulRows.map((vuln) => vuln.severity); - console.log('vulnRowsSevs', vulRowsSeverities); - const vulCols: GridColDef[] = [ { field: 'title',