diff --git a/app/components/ui/input-file.tsx b/app/components/ui/input-file.tsx index e3ff8de..3c19373 100644 --- a/app/components/ui/input-file.tsx +++ b/app/components/ui/input-file.tsx @@ -54,7 +54,7 @@ export const InputFile = >( useEffect(() => { if (uploadedFile) { - setValue('featured_image', uploadedFile) + setValue(name as string, uploadedFile) } // eslint-disable-next-line react-hooks/exhaustive-deps }, [uploadedFile])