From b6a7fa6e402c7b42c5486bc6111265c67bf280b2 Mon Sep 17 00:00:00 2001 From: ibolton336 Date: Wed, 15 Nov 2023 19:46:55 -0500 Subject: [PATCH] :bug: Allow multiple business services to be selectedin filter Signed-off-by: ibolton336 --- .../applications/applications-table/applications-table.tsx | 2 +- client/src/app/pages/issues/helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index df49e40fb1..d5660fbca9 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -375,7 +375,7 @@ export const ApplicationsTable: React.FC = () => { t("actions.filterBy", { what: t("terms.businessService").toLowerCase(), }) + "...", - type: FilterType.select, + type: FilterType.multiselect, selectOptions: dedupeFunction( applications .filter((app) => !!app.businessService?.name) diff --git a/client/src/app/pages/issues/helpers.ts b/client/src/app/pages/issues/helpers.ts index c12870caab..489296aa1a 100644 --- a/client/src/app/pages/issues/helpers.ts +++ b/client/src/app/pages/issues/helpers.ts @@ -81,7 +81,7 @@ export const useSharedAffectedApplicationFilterCategories = < t("actions.filterBy", { what: t("terms.businessService").toLowerCase(), }) + "...", - type: FilterType.select, + type: FilterType.multiselect, selectOptions: businessServices .map((businessService) => businessService.name) .map((name) => ({ key: name, value: name })),