From 51d08610772857fce0bdcd46cbb7e48d5cfdf5c0 Mon Sep 17 00:00:00 2001 From: cfdxkk Date: Thu, 9 May 2024 21:00:04 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=20?= =?UTF-8?q?TAG=20=E5=8F=AA=E6=98=BE=E7=A4=BA=E4=B8=80=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/tag-util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/tag-util.ts b/utils/tag-util.ts index 137b2ba0..6891a579 100644 --- a/utils/tag-util.ts +++ b/utils/tag-util.ts @@ -70,7 +70,7 @@ export function getDisplayVideoTagWithCurrentLanguage(language: string, tagData? const tagName = getVideoTagNameWithCurrentLanguage(language, tagData); if (tagName && tagName.tagId >= 0) { const tagId = tagName.tagId; - const mainTagName = tagName.defaultTagName ?? tagName.tagNameList?.find(name => !!name)?.[0] ?? ""; + const mainTagName = tagName.defaultTagName ?? tagName.tagNameList?.find(name => !!name) ?? ""; const originTagName = tagName.originTagName !== mainTagName ? tagName.originTagName : undefined; return { tagId, mainTagName, originTagName }; } else return { tagId: -1, mainTagName: "" };