Skip to content

Commit

Permalink
🐛 修复一个 TAG 只显示一个字的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cfdxkk committed May 9, 2024
1 parent 475eb3e commit 51d0861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/tag-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "" };
Expand Down

0 comments on commit 51d0861

Please sign in to comment.