diff options
| -rw-r--r-- | lib/models/Courseware/BlockTypes/Folder.json | 2 | ||||
| -rw-r--r-- | lib/models/Courseware/BlockTypes/Gallery.json | 2 | ||||
| -rw-r--r-- | resources/vue/store/courseware/courseware-shelf.module.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/Courseware/BlockTypes/Folder.json b/lib/models/Courseware/BlockTypes/Folder.json index 24d5792..341bc33 100644 --- a/lib/models/Courseware/BlockTypes/Folder.json +++ b/lib/models/Courseware/BlockTypes/Folder.json @@ -15,5 +15,5 @@ "required": [ "folder_id" ], - "additionalProperties": false + "additionalProperties": true } diff --git a/lib/models/Courseware/BlockTypes/Gallery.json b/lib/models/Courseware/BlockTypes/Gallery.json index 78e2747..a71ca36 100644 --- a/lib/models/Courseware/BlockTypes/Gallery.json +++ b/lib/models/Courseware/BlockTypes/Gallery.json @@ -27,5 +27,5 @@ "required": [ "folder_id" ], - "additionalProperties": false + "additionalProperties": true } diff --git a/resources/vue/store/courseware/courseware-shelf.module.js b/resources/vue/store/courseware/courseware-shelf.module.js index e1b0774..8fab7a2 100644 --- a/resources/vue/store/courseware/courseware-shelf.module.js +++ b/resources/vue/store/courseware/courseware-shelf.module.js @@ -405,7 +405,7 @@ export const actions = { }, 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(); formData.append('file', filedata, file.attributes.name); if (termId) { |
