chore: image picker popover improvement (#4068)

This commit is contained in:
Anmol Singh Bhatia
2024-03-26 16:30:57 +05:30
committed by GitHub
parent c6f36a056b
commit f3fd48dd43

View File

@@ -144,7 +144,7 @@ export const ImagePickerPopover: React.FC<Props> = observer((props) => {
useEffect(() => {
if (!unsplashImages || value !== null) return;
onChange(unsplashImages[0].urls.regular);
onChange(unsplashImages[0]?.urls.regular);
}, [value, onChange, unsplashImages]);
const handleClose = () => {