Skip to content

Commit

Permalink
chore: send values as array
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Dec 16, 2024
1 parent e831c14 commit caa60ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/khaki-poems-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@quassel/frontend": patch
"@quassel/backend": patch
"@quassel/ui": patch
---

Add participant csv import
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function AdministrationParticipantsImport() {
initialValues: [],
});
const handleSubmit = (values: FormValues) => {
createParticipantMutation.mutate({ body: values });
createParticipantMutation.mutate({ body: Object.values(values) });
};
const mapValues = (values: ImportType[]): FormValues => {
return values.map((value) => ({
Expand Down

0 comments on commit caa60ae

Please sign in to comment.