From 09ab4474e9fd80be94f5985f08777c5bde74c0ed Mon Sep 17 00:00:00 2001 From: Andreea Lupu <58118008+Andreea-Lupu@users.noreply.github.com> Date: Tue, 5 Mar 2024 19:25:20 +0200 Subject: [PATCH] fix(export-cves): use a constant string('vulnerabilities') to set xlsx sheet name (#431) Signed-off-by: Andreea-Lupu --- src/components/Tag/Tabs/VulnerabilitiesDetails.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx index ca4b461a..a7d8f8a7 100644 --- a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx +++ b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx @@ -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`);