feat: implement file existence check and improve file upload handling

This commit is contained in:
2026-04-11 00:14:45 -03:00
parent d99ab44ec2
commit c4a22a7583
7 changed files with 83 additions and 15 deletions

View File

@@ -80,7 +80,10 @@ export const CreateArticleForm = () => {
});
const title = useWatch({ control: form.control, name: 'title' });
const coverImageUrl = useWatch({ control: form.control, name: 'coverImageUrl' });
const coverImageUrl = useWatch({
control: form.control,
name: 'coverImageUrl',
});
useEffect(() => {
if (!title) return;
form.setValue('slug', slugify(title).toLowerCase());