Catch JS error "this.getVersion(...) is undefined" (Fixes #2048)
This commit is contained in:
parent
bf8e4fa585
commit
85ffe4d8fa
@ -132,7 +132,7 @@ angular.module('OpenSlidesApp.motions', ['OpenSlidesApp.users'])
|
||||
return element.id == versionId;
|
||||
});
|
||||
}
|
||||
return this.versions[index];
|
||||
return this.versions[index] || {};
|
||||
},
|
||||
getTitle: function (versionId) {
|
||||
return this.getVersion(versionId).title;
|
||||
|
Loading…
Reference in New Issue
Block a user