Skip to content

Commit

Permalink
- small fix for vulns count view
Browse files Browse the repository at this point in the history
Signed-off-by: oleg_wyndrick <[email protected]>
  • Loading branch information
Oleg-RapidFort committed Nov 7, 2024
1 parent 226d762 commit 1345e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report_shots/shots.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ async function generateContextualSeverityChart(vulnsOriginalSummary) {
* @param {number} total - Total value for filling the chart to 100%.
*/
function drawVulnsChart(draw, groupId, maxWidth, vulnsCount, total) {
const severities = ['critical', 'high', 'medium', 'low', 'unknown'];
const severities = ['critical', 'high', 'medium', 'low', 'unknown'].filter(l => vulnsCount[l] > 0);

const minWidth = 5;
const spacing = 2;
Expand Down

0 comments on commit 1345e84

Please sign in to comment.