mirror of https://github.com/keeweb/keeweb.git
fix #413: default entry group selection
This commit is contained in:
parent
2923fbd846
commit
a862919824
|
@ -276,12 +276,10 @@ var AppModel = Backbone.Model.extend({
|
||||||
var selGroupId = this.filter.group;
|
var selGroupId = this.filter.group;
|
||||||
var file, group;
|
var file, group;
|
||||||
if (selGroupId) {
|
if (selGroupId) {
|
||||||
this.files.forEach(f => {
|
this.files.some(f => {
|
||||||
|
file = f;
|
||||||
group = f.getGroup(selGroupId);
|
group = f.getGroup(selGroupId);
|
||||||
if (group) {
|
return group;
|
||||||
file = f;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!group) {
|
if (!group) {
|
||||||
|
|
Loading…
Reference in New Issue