Skip to content

Commit

Permalink
add sbom download type, fix not showing of chart in dark mode (#2095)
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-deepfence authored Apr 17, 2024
1 parent ab80730 commit bd3c5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
capitalize,
findKey,
intersection,
isEmpty,
isNil,
Expand Down Expand Up @@ -418,7 +417,7 @@ export const ReportFilters = () => {
});
}}
>
{['xlsx', 'pdf']
{['xlsx', 'pdf', 'sbom']
.filter((item) => {
if (!reportTypeSearch.length) return true;
if (item.includes(reportTypeSearch.toLowerCase())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const ScanResultChart = ({
legend: {
show: false,
},
series: theme === THEME_DARK ? [series[1]] : series,
series,
}}
onChartClick={({ name }: { name: string; value: string | number | Date }) => {
window.open(`${to}=${name.toLowerCase()}`, '_blank', 'noopener, noreferrer');
Expand Down

0 comments on commit bd3c5f6

Please sign in to comment.