diff --git a/web/components/core/image-picker-popover.tsx b/web/components/core/image-picker-popover.tsx index 53e1179dc1..1397039d19 100644 --- a/web/components/core/image-picker-popover.tsx +++ b/web/components/core/image-picker-popover.tsx @@ -144,7 +144,7 @@ export const ImagePickerPopover: React.FC = observer((props) => { useEffect(() => { if (!unsplashImages || value !== null) return; - onChange(unsplashImages[0].urls.regular); + onChange(unsplashImages[0]?.urls.regular); }, [value, onChange, unsplashImages]); const handleClose = () => {