mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 16:00:13 +01:00
Ignore checklists with missing cards
This commit is contained in:
parent
eb945f26a3
commit
f883757552
1 changed files with 22 additions and 20 deletions
|
|
@ -398,6 +398,7 @@ export class TrelloCreator {
|
||||||
|
|
||||||
createChecklists(trelloChecklists) {
|
createChecklists(trelloChecklists) {
|
||||||
trelloChecklists.forEach((checklist) => {
|
trelloChecklists.forEach((checklist) => {
|
||||||
|
if (this.cards[checklist.idCard]) {
|
||||||
// Create the checklist
|
// Create the checklist
|
||||||
const checklistToCreate = {
|
const checklistToCreate = {
|
||||||
cardId: this.cards[checklist.idCard],
|
cardId: this.cards[checklist.idCard],
|
||||||
|
|
@ -419,6 +420,7 @@ export class TrelloCreator {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
|
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue