mirror of
https://github.com/wekan/wekan.git
synced 2026-01-26 03:06:09 +01:00
Move every CustomFields.findOne() to the ReactiveCache
This commit is contained in:
parent
0a7ffe4cb0
commit
54f7361767
4 changed files with 5 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue