diff options
author | Sascha <GlancingMind@outlook.com> | 2021-05-01 18:42:29 +0200 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-05-01 18:43:49 +0200 |
commit | 15132a1533166607e9969506ec91fd9c87a4ed1c (patch) | |
tree | b516076c665fb21e0e0b33d1b705e175990b18aa /webui/src/pages/bug/Message.tsx | |
parent | 87df46bd7515e18d7bd35d29da4b70c5d29c3ffc (diff) | |
download | git-bug-15132a1533166607e9969506ec91fd9c87a4ed1c.tar.gz |
Show placeholder for empty comment(preview)
Diffstat (limited to 'webui/src/pages/bug/Message.tsx')
-rw-r--r-- | webui/src/pages/bug/Message.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webui/src/pages/bug/Message.tsx b/webui/src/pages/bug/Message.tsx index bf779208..51087faa 100644 --- a/webui/src/pages/bug/Message.tsx +++ b/webui/src/pages/bug/Message.tsx @@ -157,7 +157,11 @@ function Message({ bug, op }: Props) { </IfLoggedIn> </header> <section className={classes.body}> - <Content markdown={comment.message} /> + {comment.message !== '' ? ( + <Content markdown={comment.message} /> + ) : ( + <Content markdown="*No description provided.*" /> + )} </section> </Paper> ); |