From f655fdc4dd1ebf3f389cdc85a8cb42e4f3182e0b Mon Sep 17 00:00:00 2001 From: TalyaNaima Date: Tue, 8 Oct 2024 13:12:26 +0300 Subject: [PATCH] creating ability to filter & sort by application analysis Signed-off-by: TalyaNaima --- .../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 db5246d27..d50450147 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -513,7 +513,7 @@ export const ApplicationsTable: React.FC = () => { value: a?.tasks.currentAnalyzer?.state || "No Task", label: a?.tasks.currentAnalyzer?.state || "Not Started", })) - .filter((v, i, a) => a.findIndex((v2) => v2.label === v.label) === i) + .filter((v, i, a) => a.findIndex((v3) => v3.label === v.label) === i) .sort((a, b) => a.value.localeCompare(b.value)), getItemValue: (item) => item?.tasks.currentAnalyzer?.state || "No Task", },