Merge pull request #2055 from emanuelschuetze/fix2048
Catch JS error "this.getVersion(...) is undefined" (Fixes #2048)
This commit is contained in:
commit
7cba7c42a4
@ -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