get all cards sometimes failed because the list was undefined

This commit is contained in:
Martin Filser 2022-07-04 00:04:16 +02:00
parent 97109df673
commit c437c0d3f1

View file

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