mirror of
https://github.com/wekan/wekan.git
synced 2026-01-30 21:25:17 +01:00
Move every ChecklistItems.findOne() to the ReactiveCache
This commit is contained in:
parent
5e3a9dc059
commit
0e714a90e0
4 changed files with 26 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ Template.activities.helpers({
|
|||
BlazeComponent.extendComponent({
|
||||
checkItem() {
|
||||
const checkItemId = this.currentData().activity.checklistItemId;
|
||||
const checkItem = ChecklistItems.findOne({ _id: checkItemId });
|
||||
const checkItem = ReactiveCache.getChecklistItem(checkItemId);
|
||||
return checkItem && checkItem.title;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue