Browse Source

#318

feature/318
みてるぞ 1 week ago
parent
commit
c9df340978
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      frontend/src/components/TopNav.tsx
  2. +2
    -2
      frontend/src/pages/tags/TagDetailPage.tsx

+ 1
- 1
frontend/src/components/TopNav.tsx View File

@@ -44,7 +44,7 @@ export const menuOutline = ({ tag, wikiId, user, pathName }: {
{ name: 'ヘルプ', to: '/wiki/ヘルプ:タグ' },
{ component: <Separator/>, 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: [


+ 2
- 2
frontend/src/pages/tags/TagDetailPage.tsx View File

@@ -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])



Loading…
Cancel
Save