Fix content-type for formdata
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -23,9 +23,7 @@ function useCreateGroup() {
|
||||
|
||||
return api('/api/v1/groups', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
headers: { 'Content-Type': '' },
|
||||
body: formData,
|
||||
});
|
||||
}, { schema: groupSchema });
|
||||
|
||||
@ -22,9 +22,7 @@ function useUpdateGroup(groupId: string) {
|
||||
|
||||
return api(`/api/v1/groups/${groupId}`, {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
headers: { 'Content-Type': '' },
|
||||
body: formData,
|
||||
});
|
||||
}, { schema: groupSchema });
|
||||
|
||||
Reference in New Issue
Block a user