Merge pull request #2055 from emanuelschuetze/fix2048

Catch JS error "this.getVersion(...) is undefined" (Fixes #2048)
This commit is contained in:
Norman Jäckel 2016-03-20 21:06:39 +01:00
commit 7cba7c42a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;