mirror of
https://github.com/wekan/wekan.git
synced 2026-01-31 05:35:16 +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
|
|
@ -56,7 +56,7 @@ Activities.helpers({
|
|||
return ReactiveCache.getCard(this.subtaskId);
|
||||
},
|
||||
customField() {
|
||||
return CustomFields.findOne(this.customFieldId);
|
||||
return ReactiveCache.getCustomField(this.customFieldId);
|
||||
},
|
||||
// Label activity did not work yet, unable to edit labels when tried this.
|
||||
//label() {
|
||||
|
|
|
|||
|
|
@ -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