Skip to content

Commit

Permalink
Merge pull request #900 from rapidfort/vulns_count_view_fix
Browse files Browse the repository at this point in the history
- small fix for vulns count view
  • Loading branch information
Oleg-RapidFort authored Nov 7, 2024
2 parents 226d762 + 1345e84 commit 24765bb
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 24765bb

Please sign in to comment.