Skip to content

Commit

Permalink
Merge branch '732-filter-by-region-gets-distorted-after-unselecting' of
Browse files Browse the repository at this point in the history
https://github.com/cisagov/XFD into 732-filter-by-region-gets-distorted-after-unselecting
  • Loading branch information
hawkishpolicy committed Dec 17, 2024
2 parents 7861c81 + 2f092ea commit d520ee5
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 d520ee5

Please sign in to comment.