Checklist copy/move dialog was sometimes empty

- a Exception was thrown the return value was an object because #each only accepts arrays and cursors

See also:
https://github.com/wekan/wekan/issues/4655#issuecomment-1250106151
This commit is contained in:
Martin Filser 2022-09-17 18:58:55 +02:00
parent 39975395e1
commit 610bd66122

View file

@ -23,7 +23,7 @@ export class DialogWithBoardSwimlaneListCard extends DialogWithBoardSwimlaneList
/** returns all available cards of the current list */
cards() {
const list = Lists.findOne(this.selectedListId.get());
let ret = {}
let ret = [];
if (list) {
ret = list.cards(this.selectedSwimlaneId.get());
}