Skip to content

Commit

Permalink
fix(export-cves): use a constant string('vulnerabilities') to set xls…
Browse files Browse the repository at this point in the history
…x sheet name (#431)

Signed-off-by: Andreea-Lupu <[email protected]>
  • Loading branch information
Andreea-Lupu authored Mar 5, 2024
1 parent 177406d commit 09ab447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Tag/Tabs/VulnerabilitiesDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function VulnerabilitiesDetails(props) {
const wb = XLSX.utils.book_new(),
ws = XLSX.utils.json_to_sheet(allCveData);

XLSX.utils.book_append_sheet(wb, ws, name.replaceAll('/', '_') + '_' + tag);
XLSX.utils.book_append_sheet(wb, ws, 'vulnerabilities');

XLSX.writeFile(wb, `${name}:${tag}-vulnerabilities.xlsx`);

Expand Down

0 comments on commit 09ab447

Please sign in to comment.