From 663e1c549b19ce87e175a45fa8dc7ce95679e8ce Mon Sep 17 00:00:00 2001 From: Oleg Vavilov Date: Thu, 14 Nov 2024 10:51:03 +0300 Subject: [PATCH] [Bug]: Services without model mapping are displayed in Models UI #1980 --- frontend/src/pages/Models/List/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Models/List/index.tsx b/frontend/src/pages/Models/List/index.tsx index 72b28c2ef..84a0e4675 100644 --- a/frontend/src/pages/Models/List/index.tsx +++ b/frontend/src/pages/Models/List/index.tsx @@ -46,7 +46,7 @@ export const List: React.FC = () => { return ( _sortBy(data, [(i) => -i.submitted_at]) // Should show models of active runs only - .filter((run) => unfinishedRuns.includes(run.status)) + .filter((run) => unfinishedRuns.includes(run.status) && run.service?.model) .reduce((acc, run) => { const model = getExtendedModelFromRun(run);