GitLab wird am Donnerstag, den 27. Januar, zwischen 08:00 und 12:00 Uhr wegen wichtigen Wartungsarbeiten nicht zur Verfügung stehen.

Commit 343c347b authored by Andreas Gärtner's avatar Andreas Gärtner
Browse files

Fix javascript reference bug on empty carousel.

parent 3d1ab2be
......@@ -47,7 +47,9 @@ Ext.define('ARSnova.view.CustomCarousel', {
this.getIndicator().setBottom('initial');
this.on('add', function (carousel, item, index) {
item.getActiveItem().setStyle('margin-top: 3em');
if (item.getActiveItem()) {
item.getActiveItem().setStyle('margin-top: 3em');
}
});
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment