みてるぞ 2 weeks 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> </Button>
<TabGroup> <TabGroup>
<Tab name="関聯"> <Tab name="関聯">
<PostList posts={post.related} />
{post.related.length > 0
? <PostList posts={post.related} />
: 'まだないよ(笑)'}
</Tab> </Tab>
{['admin', 'member'].some (r => user?.role === r) && ( {['admin', 'member'].some (r => user?.role === r) && (
<Tab name="編輯"> <Tab name="編輯">


Loading…
Cancel
Save