Skip to content

Commit

Permalink
Merge pull request #802 from intuitem/hotfix/nested-form-file-uploads…
Browse files Browse the repository at this point in the history
…-regression

Fix regression in nested form file uploads
  • Loading branch information
Mohamed-Hacene committed Sep 6, 2024
2 parents bbef85b + e03ad41 commit f7e1784
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, File> = Object.fromEntries(
Object.entries(form.data).filter(([key]) => model.fileFields?.includes(key) ?? false)
Expand Down

0 comments on commit f7e1784

Please sign in to comment.