Skip to content

Commit

Permalink
fix: hopefully last fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BramMeir committed Apr 9, 2024
1 parent 873d18b commit 1bfb131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/composables/services/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export async function create<T>(
data: any,
ref: Ref<T | null>,
fromJson: (data: any) => T,
content_type: string = 'application/json',
contentType: string = 'application/json',
): Promise<void> {
try {
const response = await client.post(endpoint, data, {
headers: {
'Content-Type': content_type,
'Content-Type': contentType,
},
});
ref.value = fromJson(response.data);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/composables/services/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function useProject(): ProjectState {
},
project,
Project.fromJSON,
'multipart/form-data'
'multipart/form-data',
);
}

Expand Down

0 comments on commit 1bfb131

Please sign in to comment.