mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 17:30:13 +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
|
|
@ -159,7 +159,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
lastCustomField() {
|
||||
const lastCustomField = CustomFields.findOne(
|
||||
const lastCustomField = ReactiveCache.getCustomField(
|
||||
this.currentData().activity.customFieldId,
|
||||
);
|
||||
if (!lastCustomField) return null;
|
||||
|
|
@ -167,7 +167,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
lastCustomFieldValue() {
|
||||
const lastCustomField = CustomFields.findOne(
|
||||
const lastCustomField = ReactiveCache.getCustomField(
|
||||
this.currentData().activity.customFieldId,
|
||||
);
|
||||
if (!lastCustomField) return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue