From 4b6caee158a4913f9fda423e4df7f9df2e8a53a0 Mon Sep 17 00:00:00 2001 From: cashmere Date: Sun, 26 Jul 2026 22:34:11 +0200 Subject: fix: guard MediaPreview against image assets without url The image branch rendered , crashing the assets panel for any image asset lacking url. It now falls back to thumbnailUrl and then to the existing MediaTypePlaceholder, mirroring the video branch's fallback. --- .../src/components/editor/panels/assets/views/assets.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/panels/assets/views/assets.tsx b/apps/web/src/components/editor/panels/assets/views/assets.tsx index 00cb015f..4dbed41e 100644 --- a/apps/web/src/components/editor/panels/assets/views/assets.tsx +++ b/apps/web/src/components/editor/panels/assets/views/assets.tsx @@ -444,10 +444,21 @@ function MediaPreview({ const shouldShowDurationBadge = variant === "grid"; if (item.type === "image") { + const src = item.url ?? item.thumbnailUrl; + if (!src) { + return ( + + ); + } return (