浏览代码

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
Martin Filser 2 年之前
父节点
当前提交
610bd66122
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/lib/dialogWithBoardSwimlaneListCard.js

+ 1 - 1
client/lib/dialogWithBoardSwimlaneListCard.js

@@ -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());
     }