Move every CustomFields.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-03 23:58:38 +01:00
parent 0a7ffe4cb0
commit 54f7361767
4 changed files with 5 additions and 5 deletions

View file

@ -532,7 +532,7 @@ Cards.helpers({
mapCustomFieldsToBoard(boardId) {
// Map custom fields to new board
return this.customFields.map(cf => {
const oldCf = CustomFields.findOne(cf._id);
const oldCf = ReactiveCache.getCustomField(cf._id);
const newCf = CustomFields.findOne({
boardIds: boardId,
name: oldCf.name,