My Cards: fix bug when null board, swimlane, or list

* Add new functions to model card for retrieving associated board,
swimlane, or list with default values
* Use new card model methods
This commit is contained in:
John R. Supplee 2021-01-08 21:51:28 +02:00
parent b79ee281ec
commit 0e1c510948
6 changed files with 54 additions and 33 deletions

View file

@ -142,22 +142,4 @@ BlazeComponent.extendComponent({
// console.log('cards:', cards);
return cards;
},
events() {
return [
{
// 'click .js-my-card'(evt) {
// const card = this.currentData().card;
// // eslint-disable-next-line no-console
// console.log('currentData():', this.currentData());
// // eslint-disable-next-line no-console
// console.log('card:', card);
// if (card) {
// Utils.goCardId(card._id);
// }
// evt.preventDefault();
// },
},
];
},
}).register('dueCards');