diff --git a/web/src/ui/Lightbox.tsx b/web/src/ui/Lightbox.tsx index 7f6b383..930731d 100644 --- a/web/src/ui/Lightbox.tsx +++ b/web/src/ui/Lightbox.tsx @@ -40,6 +40,9 @@ export const LightboxWrapper = ({ children }: { children: React.ReactNode }) => if ((params as React.MouseEvent).target) { const evt = params as React.MouseEvent const target = evt.currentTarget as HTMLImageElement + if (!target.src) { + return + } setParams({ src: target.src, alt: target.alt,