Skip to content
Snippets Groups Projects
Commit be46fa08 authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fix #2543

Closes #2543

Merge request studip/studip!1727
parent 027c1441
No related branches found
No related tags found
No related merge requests found
...@@ -15,5 +15,5 @@ ...@@ -15,5 +15,5 @@
"required": [ "required": [
"folder_id" "folder_id"
], ],
"additionalProperties": false "additionalProperties": true
} }
...@@ -27,5 +27,5 @@ ...@@ -27,5 +27,5 @@
"required": [ "required": [
"folder_id" "folder_id"
], ],
"additionalProperties": false "additionalProperties": true
} }
...@@ -405,7 +405,7 @@ export const actions = { ...@@ -405,7 +405,7 @@ export const actions = {
}, },
async createFile(context, { file, filedata, folder }) { async createFile(context, { file, filedata, folder }) {
const termId = file?.relationships['terms-of-use']?.data?.id ?? null; const termId = file?.relationships?.['terms-of-use']?.data?.id ?? null;
const formData = new FormData(); const formData = new FormData();
formData.append('file', filedata, file.attributes.name); formData.append('file', filedata, file.attributes.name);
if (termId) { if (termId) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment