fix #413: default entry group selection

This commit is contained in:
antelle 2017-01-29 19:34:47 +01:00
parent 2923fbd846
commit a862919824
1 changed files with 3 additions and 5 deletions

View File

@ -276,12 +276,10 @@ var AppModel = Backbone.Model.extend({
var selGroupId = this.filter.group;
var file, group;
if (selGroupId) {
this.files.forEach(f => {
this.files.some(f => {
file = f;
group = f.getGroup(selGroupId);
if (group) {
file = f;
return false;
}
return group;
});
}
if (!group) {