aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2022-02-04 10:48:39 +0000
committerRon Lucke <lucke@elan-ev.de>2022-02-04 10:48:39 +0000
commitcdb090bdd661670055ccac451bc7fcf313a2a026 (patch)
treebf4a2d18032c3f9d6d4fe391898355b7b7954093
parentc95689d90e445779428a4bae188270e390d8a5a1 (diff)
fix #641
-rwxr-xr-xresources/vue/components/courseware/CoursewareBlockAdderArea.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/vue/components/courseware/CoursewareBlockAdderArea.vue b/resources/vue/components/courseware/CoursewareBlockAdderArea.vue
index f3d770f..f2fdc86 100755
--- a/resources/vue/components/courseware/CoursewareBlockAdderArea.vue
+++ b/resources/vue/components/courseware/CoursewareBlockAdderArea.vue
@@ -51,7 +51,7 @@ export default {
this.adderActive = false;
this.$emit('updateContainerContent', oldValue);
} else {
- if (newValue.container.id === this.container.id && newValue.section === this.section) {
+ if (newValue.container && newValue.container.id === this.container.id && newValue.section === this.section) {
this.adderActive = true;
} else {
this.adderActive = false;