Skip to content

Commit

Permalink
N/A and Other added to the severity array
Browse files Browse the repository at this point in the history
  • Loading branch information
lwersiy committed Dec 11, 2024
1 parent 3fa6884 commit 2f092ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/pages/Search/FilterTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ const FIELD_TO_LABEL_MAP: FieldToLabelMap = {
return 'Severity';
},
filterValueAccssor(t) {
const severityLevels = ['Low', 'Medium', 'High', 'Critical'];
const severityLevels = [
'N/A',
'Low',
'Medium',
'High',
'Critical',
'Other'
];
if (Array.isArray(t)) {
return t.sort((a: string, b: string) => {
const aValue = severityLevels.indexOf(a);
Expand Down

0 comments on commit 2f092ea

Please sign in to comment.