From 4ed292540759790851ed106d2d5eb542e550a018 Mon Sep 17 00:00:00 2001 From: Szepesi Tibor Date: Mon, 13 Nov 2023 09:31:44 +0100 Subject: [PATCH] Hide image viewer if there is no image --- src/pages/Post.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Post.tsx b/src/pages/Post.tsx index 39d435d..907ea32 100644 --- a/src/pages/Post.tsx +++ b/src/pages/Post.tsx @@ -24,7 +24,7 @@ const PostPage: VoidComponent = () => { }) const searchLink = () => `/search/author/${data()!.post.author.id}` - const images = () => data()?.post.images ?? [] + const images = () => data()?.post.images return ( <> @@ -58,9 +58,9 @@ const PostPage: VoidComponent = () => { - + 0}>
- +