Refactor subsUnion
This commit is contained in:
parent
a511d7192a
commit
dcab7912c2
1 changed files with 3 additions and 1 deletions
|
|
@ -27,9 +27,11 @@ Meteor.startup(() => {
|
|||
return sub;
|
||||
};
|
||||
|
||||
const noNoisy = sub => sub;
|
||||
|
||||
const process = (isPublic) => {
|
||||
const group = new L.FeatureGroup();
|
||||
const result = calcUnion(Subscriptions.find().fetch(), group, isPublic ? addNoisy : sub => sub);
|
||||
const result = calcUnion(Subscriptions.find().fetch(), group, isPublic ? addNoisy : noNoisy);
|
||||
const union = result[0];
|
||||
const bounds = result[1];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue