Fix and improve linked cards

This commit is contained in:
Andrés Manelli 2018-08-21 22:20:45 +02:00
parent b881c3b908
commit 3e715bbcc9
3 changed files with 16 additions and 7 deletions

View file

@ -712,6 +712,14 @@ Cards.helpers({
}
},
getId() {
if (this.isLinked()) {
return this.linkedId;
} else {
return this._id;
}
},
getTitle() {
if (this.isLinkedCard()) {
const card = Cards.findOne({ _id: this.linkedId });