mirror of
https://github.com/vale981/grapher
synced 2025-03-04 17:11:38 -05:00
Merge pull request #313 from bhunjadi/fix-nested-compose-config
Pass config to the nested publications in recursiveCompose
This commit is contained in:
commit
95ecf4e317
1 changed files with 2 additions and 2 deletions
|
@ -41,14 +41,14 @@ function compose(node, userId, config) {
|
|||
}
|
||||
|
||||
const cursor = accessor.find(filters, options, userId);
|
||||
if (config && config.scoped) {
|
||||
if (config.scoped) {
|
||||
patchCursor(cursor, getNodeNamespace(node));
|
||||
}
|
||||
return cursor;
|
||||
}
|
||||
},
|
||||
|
||||
children: _.map(node.collectionNodes, n => compose(n, userId))
|
||||
children: _.map(node.collectionNodes, n => compose(n, userId, config))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue