From cbef5e98e07a7d73741242cbdf0f1d1256d7e072 Mon Sep 17 00:00:00 2001 From: Radoslaw Szwajkowski Date: Wed, 26 Jun 2024 13:57:29 +0200 Subject: [PATCH] :bug: Use exact match for filtering by application name (#1966) Exact match ensures that active item is on page. Example usage: /applications?activeItem=6&filters={"name":["bookserver-app"]} Resolves: #1974 Signed-off-by: Radoslaw Szwajkowski --- .../applications/applications-table/applications-table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 dfa9d137d9..049c739ddc 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -342,7 +342,7 @@ export const ApplicationsTable: React.FC = () => { t("actions.filterBy", { what: t("terms.name").toLowerCase(), }) + "...", - getItemValue: (item) => item?.name || "", + matcher: (filter: string, item: Application) => item.name === filter, selectOptions: [ ...new Set( applications.map((application) => application.name).filter(Boolean)