From c9df3409789522c26b17fb9aa55c265d0835192b Mon Sep 17 00:00:00 2001 From: miteruzo Date: Wed, 22 Apr 2026 23:40:00 +0900 Subject: [PATCH] #318 --- frontend/src/components/TopNav.tsx | 2 +- frontend/src/pages/tags/TagDetailPage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/TopNav.tsx b/frontend/src/components/TopNav.tsx index ca100d4..c06f1b9 100644 --- a/frontend/src/components/TopNav.tsx +++ b/frontend/src/components/TopNav.tsx @@ -44,7 +44,7 @@ export const menuOutline = ({ tag, wikiId, user, pathName }: { { name: 'ヘルプ', to: '/wiki/ヘルプ:タグ' }, { component: , visible: tagFlg }, { name: `広場 (${ postCount || 0 })`, - to: `/posts?tags=${ encodeURIComponent (tag?.name) }`, + to: `/posts?tags=${ encodeURIComponent (tag?.name ?? '') }`, visible: tagFlg }, { name: '履歴', to: `/tags/changes?id=${ tag?.id }`, visible: false }] }, { name: '素材', to: '/materials', visible: false, subMenu: [ diff --git a/frontend/src/pages/tags/TagDetailPage.tsx b/frontend/src/pages/tags/TagDetailPage.tsx index 80693b3..6452508 100644 --- a/frontend/src/pages/tags/TagDetailPage.tsx +++ b/frontend/src/pages/tags/TagDetailPage.tsx @@ -72,8 +72,8 @@ export default (() => { setName (tag.name) setCategory (tag.category as Category) - setAliases (tag.aliases?.join (' ')) - setParentTags (tag.parents?.map (t => t.name).join (' ')) + setAliases (tag.aliases.join (' ')) + setParentTags (tag.parents.map (t => t.name).join (' ')) setDisabled (tag.category === 'nico') }, [tag])