From bd0fde6790e46797657d3b9cc0931eada6c66781 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 17 Jul 2020 16:59:18 +0200 Subject: [PATCH] handle empty values in preview --- src/components/pages/Publish/Preview.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/pages/Publish/Preview.tsx b/src/components/pages/Publish/Preview.tsx index cf32dd734..17d6e7b19 100644 --- a/src/components/pages/Publish/Preview.tsx +++ b/src/components/pages/Publish/Preview.tsx @@ -15,7 +15,7 @@ export default function Preview({ return (
-

{values.name}

+ {values.name &&

{values.name}

} {values.description && } {values.files && values.files.length && ( (