Skip to content
Snippets Groups Projects
Commit f643d469 authored by Ron Lucke's avatar Ron Lucke
Browse files

Courseware: TypeError beim Weiterschalten der Seite

Closes #4192

Merge request studip/studip!3295
parent 81d89227
No related branches found
No related tags found
No related merge requests found
......@@ -252,7 +252,7 @@ const containerMixin = {
resetAdderStorage() {
// choose the last container and its last section as the default adder slot
// for adding blocks and containers via click
if (this.containers) {
if (this.containers && this.containers.length > 0) {
const lastContainer = this.containers[this.containers.length - 1];
const section = lastContainer.activeSection ?? 0;
this.setAdderStorage({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment