diff --git a/src/components/_shared/SolidSwiper/ImageSwiper.tsx b/src/components/_shared/SolidSwiper/ImageSwiper.tsx index 76a073ac..8b3a497c 100644 --- a/src/components/_shared/SolidSwiper/ImageSwiper.tsx +++ b/src/components/_shared/SolidSwiper/ImageSwiper.tsx @@ -46,7 +46,9 @@ export const ImageSwiper = (props: Props) => { } = useSnackbar() const handleSlideDescriptionChange = (index: number, field: string, value) => { - props.onImageChange(index, { ...props.images[index], [field]: value }) + if (props.onImageChange) { + props.onImageChange(index, { ...props.images[index], [field]: value }) + } } const swipeToUploaded = () => { setTimeout(() => {