From b3dff30519a052e9d9ae77ba123c6bad942aa3b1 Mon Sep 17 00:00:00 2001 From: Bryce Kalow Date: Wed, 21 Jun 2023 10:51:58 -0500 Subject: [PATCH] fix: only load video placeholder image if it is defined (#2014) --- src/components/video-embed/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/video-embed/index.tsx b/src/components/video-embed/index.tsx index 6e7d0c0ca5..f2f52cff44 100644 --- a/src/components/video-embed/index.tsx +++ b/src/components/video-embed/index.tsx @@ -42,7 +42,7 @@ function VideoEmbedPlaceholder({ imageUrl }) { top: '0', width: '100%', height: '100%', - backgroundImage: `url(${imageUrl})`, + ...(imageUrl && { backgroundImage: `url(${imageUrl})` }), backgroundSize: 'cover', backgroundPosition: 'center', cursor: 'pointer',