mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Fix filter in swimlanes view
This commit is contained in:
parent
d5bc66c9a4
commit
49229e1723
1 changed files with 5 additions and 5 deletions
|
@ -133,14 +133,14 @@ Swimlanes.helpers({
|
|||
},
|
||||
|
||||
lists() {
|
||||
return Lists.find(Filter.mongoSelector({
|
||||
return Lists.find({
|
||||
boardId: this.boardId,
|
||||
swimlaneId: {$in: [this._id, '']},
|
||||
archived: false,
|
||||
}), { sort: ['sort'] });
|
||||
}, { sort: ['sort'] });
|
||||
},
|
||||
|
||||
allLists() {
|
||||
myLists() {
|
||||
return Lists.find({ swimlaneId: this._id });
|
||||
},
|
||||
|
||||
|
@ -189,7 +189,7 @@ Swimlanes.mutations({
|
|||
|
||||
archive() {
|
||||
if (this.isTemplateSwimlane()) {
|
||||
this.lists().forEach((list) => {
|
||||
this.myLists().forEach((list) => {
|
||||
return list.archive();
|
||||
});
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ Swimlanes.mutations({
|
|||
|
||||
restore() {
|
||||
if (this.isTemplateSwimlane()) {
|
||||
this.allLists().forEach((list) => {
|
||||
this.myLists().forEach((list) => {
|
||||
return list.restore();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue