みてるぞ 1 week ago
parent
commit
4b8cb47701
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      frontend/src/pages/posts/PostDetailPage.tsx

+ 3
- 1
frontend/src/pages/posts/PostDetailPage.tsx View File

@@ -111,7 +111,9 @@ export default ({ user }: Props) => {
</Button>
<TabGroup>
<Tab name="関聯">
<PostList posts={post.related} />
{post.related.length > 0
? <PostList posts={post.related} />
: 'まだないよ(笑)'}
</Tab>
{['admin', 'member'].some (r => user?.role === r) && (
<Tab name="編輯">


Loading…
Cancel
Save