From e03ad41d409b2f8e79a1f8d90d71d7fe60e58d3e Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 6 Sep 2024 15:16:42 +0200 Subject: [PATCH] Fix regression in nested form file uploads --- .../src/routes/(app)/[model=urlmodel]/[id=uuid]/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(app)/[model=urlmodel]/[id=uuid]/+page.server.ts b/frontend/src/routes/(app)/[model=urlmodel]/[id=uuid]/+page.server.ts index 2d3b0a9e1..3a53023db 100644 --- a/frontend/src/routes/(app)/[model=urlmodel]/[id=uuid]/+page.server.ts +++ b/frontend/src/routes/(app)/[model=urlmodel]/[id=uuid]/+page.server.ts @@ -31,7 +31,7 @@ export const actions: Actions = { const endpoint = `${BASE_API_URL}/${urlModel}/`; - const model = getModelInfo(event.params.model!); + const model = getModelInfo(urlModel!); const fileFields: Record = Object.fromEntries( Object.entries(form.data).filter(([key]) => model.fileFields?.includes(key) ?? false)