From 15af9658f8bc999e98fd7d3942c923fec951047d Mon Sep 17 00:00:00 2001 From: jesus Date: Wed, 9 Sep 2026 16:18:20 +0000 Subject: [PATCH] fix(ui): format metadata tag helper Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- ui/litellm-dashboard/src/components/key_info_utils.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/key_info_utils.tsx b/ui/litellm-dashboard/src/components/key_info_utils.tsx index 92ddeac7cbf..5a1c7f0cf67 100644 --- a/ui/litellm-dashboard/src/components/key_info_utils.tsx +++ b/ui/litellm-dashboard/src/components/key_info_utils.tsx @@ -65,7 +65,8 @@ export const stripTagsFromMetadata = (metadata: any) => { export const mergeKeyTags = (fieldTags: unknown, metadata: unknown): string[] => { const isString = (value: unknown): value is string => typeof value === "string"; const fromField = Array.isArray(fieldTags) ? fieldTags.filter(isString) : []; - const metadataTags = metadata && typeof metadata === "object" ? (metadata as Record).tags : undefined; + const metadataTags = + metadata && typeof metadata === "object" ? (metadata as Record).tags : undefined; const fromMetadata = Array.isArray(metadataTags) ? metadataTags.filter(isString) : []; return Array.from(new Set([...fromField, ...fromMetadata])); };