mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 15:48:49 +01:00
Move every Org.findOne() to the ReactiveCache
This commit is contained in:
parent
79ea4d6d1e
commit
2ab34d3b87
4 changed files with 32 additions and 9 deletions
|
|
@ -89,18 +89,18 @@ BlazeComponent.extendComponent({
|
|||
|
||||
Template.boardOrgRow.helpers({
|
||||
orgData() {
|
||||
return Org.findOne(this.orgId);
|
||||
return ReactiveCache.getOrg(this.orgId);
|
||||
},
|
||||
});
|
||||
|
||||
Template.boardOrgName.helpers({
|
||||
orgName() {
|
||||
const org = Org.findOne(this.orgId);
|
||||
const org = ReactiveCache.getOrg(this.orgId);
|
||||
return org && org.orgDisplayName;
|
||||
},
|
||||
|
||||
orgViewPortWidth() {
|
||||
const org = Org.findOne(this.orgId);
|
||||
const org = ReactiveCache.getOrg(this.orgId);
|
||||
return ((org && org.orgDisplayName.length) || 1) * 12;
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue