From 2fb902ee01279bcad5f4bee050c0dfcf59367f13 Mon Sep 17 00:00:00 2001 From: sascha10000 Date: Tue, 7 Jun 2022 14:15:18 +0200 Subject: [PATCH] fixed error due to issue with server sided preview generation (#70) --- app/components/Preview/Types/PreviewUri.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/components/Preview/Types/PreviewUri.tsx b/app/components/Preview/Types/PreviewUri.tsx index 5fefa58..68c0d24 100644 --- a/app/components/Preview/Types/PreviewUri.tsx +++ b/app/components/Preview/Types/PreviewUri.tsx @@ -23,7 +23,15 @@ export function PreviewUri(props: PreviewUriProps) {
{previewFetcher.type === "done" ? ( <> - {"error" in previewFetcher.data ? ( + {typeof previewFetcher.data == "string" ? ( + + + + + + ) : "error" in previewFetcher.data ? ( {previewFetcher.data.error}