A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix(avatar): Avatar deletion is now persisted as expected
Jonathan ARNAULT13d2e28752e9
diff --git a/src/misc/ImageEditorField.tsx b/src/misc/ImageEditorField.tsxindex eb066e41..98be3c56 100644--- a/src/misc/ImageEditorField.tsx+++ b/src/misc/ImageEditorField.tsx@@ -117,7 +117,10 @@ const ImageEditorDialog = (props: ImageEditorDialogProps) => {};const deleteImage = () => {- setValue(props.source, undefined, { shouldDirty: true });+ setValue(props.source, null, { shouldDirty: true });+ if (props.onSave) {+ handleSubmit(props.onSave)();+ }props.onClose();};