mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 23:14:07 +01:00
replace Array#forEach() ... Array#push with Array#map
This commit is contained in:
parent
ea3144492e
commit
66c2140911
2 changed files with 7 additions and 10 deletions
|
|
@ -162,11 +162,8 @@ Utils = {
|
|||
},
|
||||
|
||||
archivedBoardIds() {
|
||||
const archivedBoards = [];
|
||||
ReactiveCache.getBoards({ archived: false }).forEach(board => {
|
||||
archivedBoards.push(board._id);
|
||||
});
|
||||
return archivedBoards;
|
||||
const ret = ReactiveCache.getBoards({ archived: false }).map(board => board._id);
|
||||
return ret;
|
||||
},
|
||||
|
||||
dueCardsView() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue