Move every Cards.findOne(idOrFirstObjectSelector, options) to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-04 12:38:37 +01:00
parent 48ba81eb3d
commit 06e374f0ff
6 changed files with 11 additions and 11 deletions

View file

@ -299,11 +299,11 @@ Lists.helpers({
},
absoluteUrl() {
const card = Cards.findOne({ listId: this._id });
const card = ReactiveCache.getCard({ listId: this._id });
return card && card.absoluteUrl();
},
originRelativeUrl() {
const card = Cards.findOne({ listId: this._id });
const card = ReactiveCache.getCard({ listId: this._id });
return card && card.originRelativeUrl();
},
remove() {