chore: image picker popover improvement (#4068)
This commit is contained in:
parent
c6f36a056b
commit
f3fd48dd43
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ export const ImagePickerPopover: React.FC<Props> = observer((props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!unsplashImages || value !== null) return;
|
if (!unsplashImages || value !== null) return;
|
||||||
|
|
||||||
onChange(unsplashImages[0].urls.regular);
|
onChange(unsplashImages[0]?.urls.regular);
|
||||||
}, [value, onChange, unsplashImages]);
|
}, [value, onChange, unsplashImages]);
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue