From d3c07779082e1f3bc3bb60b3d15c960df13bf5b2 Mon Sep 17 00:00:00 2001 From: Ivy Date: Thu, 26 Dec 2024 09:08:39 -0500 Subject: [PATCH] fix: account for deleted property on toolReference (#1014) --- ui/admin/app/lib/service/api/toolreferenceService.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/admin/app/lib/service/api/toolreferenceService.ts b/ui/admin/app/lib/service/api/toolreferenceService.ts index 590711cf..77944d71 100644 --- a/ui/admin/app/lib/service/api/toolreferenceService.ts +++ b/ui/admin/app/lib/service/api/toolreferenceService.ts @@ -37,6 +37,11 @@ async function getToolReferencesCategoryMap(type?: ToolReferenceType) { const result: ToolCategoryMap = {}; for (const toolReference of toolReferences) { + if (toolReference.deleted) { + // skip tools if marked with deleted + continue; + } + const category = !toolReference.builtin ? YourToolsToolCategory : toolReference.metadata?.category || UncategorizedToolCategory;