From 2647c992745a716bc662e549fc3b83d5c278deae Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 14 Apr 2026 16:18:16 -0500 Subject: [PATCH] Guard refs that fail measure --- src/components/Post/Embed/ImageEmbed.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Post/Embed/ImageEmbed.tsx b/src/components/Post/Embed/ImageEmbed.tsx index 5934eac3ee..0093d10406 100644 --- a/src/components/Post/Embed/ImageEmbed.tsx +++ b/src/components/Post/Embed/ImageEmbed.tsx @@ -57,7 +57,11 @@ export function ImageEmbed({ 'worklet' const rects: (MeasuredDimensions | null)[] = [] for (const r of refs) { - rects.push(measure(r)) + try { + rects.push(measure(r)) + } catch { + rects.push(null) + } } runOnJS(_openLightbox)(index, rects, fetchedDims) })()