From e358d1276568bd5e318b5711d4fd93377f67bea1 Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Fri, 20 Mar 2026 04:15:18 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20submit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/InternalResourceForm.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/InternalResourceForm.tsx b/src/components/InternalResourceForm.tsx index dc3223500..e79575ab3 100644 --- a/src/components/InternalResourceForm.tsx +++ b/src/components/InternalResourceForm.tsx @@ -531,9 +531,15 @@ export function InternalResourceForm({ return (
- onSubmit(values as InternalResourceFormValues) - )} + onSubmit={form.handleSubmit((values) => { + onSubmit({ + ...values, + clients: (values.clients ?? []).map((c) => ({ + id: c.clientId.toString(), + text: c.name + })) + }); + })} className="space-y-6" id={formId} >