mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
get all cards sometimes failed because the list was undefined
This commit is contained in:
parent
97109df673
commit
c437c0d3f1
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue