diff --git a/src/components/admin/resources/form.tsx b/src/components/admin/resources/form.tsx index 760c97d..6d6ac69 100644 --- a/src/components/admin/resources/form.tsx +++ b/src/components/admin/resources/form.tsx @@ -53,8 +53,9 @@ export type ResourceUpdateInput = RouterInputs["auditoryResource"]["update"]; * * File needs to be path relative to resource_logos/ */ -const SelectImageInput = ({ resource }: { resource?: ResourceUpdateInput }) => { +const SelectImageInput = () => { const { setValue, setError, watch } = useFormContext(); + const name = watch("name"); const photo = watch("photo"); const icon = watch("icon"); @@ -86,7 +87,7 @@ const SelectImageInput = ({ resource }: { resource?: ResourceUpdateInput }) => { className="bg-whit group relative cursor-pointer overflow-hidden rounded-xl border border-neutral-400 drop-shadow-lg" > @@ -343,7 +344,7 @@ function ResourceSummarySubForm({
- +