Skip to content

Commit

Permalink
fix: account for deleted property on toolReference (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivyjeong13 authored Dec 26, 2024
1 parent a689d22 commit d3c0777
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/admin/app/lib/service/api/toolreferenceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d3c0777

Please sign in to comment.