Use Utils#getCurrentCard() everywhere in the code

This commit is contained in:
Martin Filser 2021-10-19 23:55:25 +02:00
parent 7a6cfcb498
commit fdf40f4584
10 changed files with 21 additions and 21 deletions

View file

@ -15,7 +15,7 @@ BlazeComponent.extendComponent({
const capitalizedMode = Utils.capitalize(mode);
let thisId, searchId;
if (mode === 'linkedcard' || mode === 'linkedboard') {
thisId = Session.get('currentCard');
thisId = Utils.getCurrentCardId();
searchId = Cards.findOne({ _id: thisId }).linkedId;
mode = mode.replace('linked', '');
} else {