소스 검색

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 */
   /** returns all available cards of the current list */
   cards() {
   cards() {
     const list = Lists.findOne(this.selectedListId.get());
     const list = Lists.findOne(this.selectedListId.get());
-    let ret = {}
+    let ret = [];
     if (list) {
     if (list) {
       ret = list.cards(this.selectedSwimlaneId.get());
       ret = list.cards(this.selectedSwimlaneId.get());
     }
     }