mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -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);
|
const cursor = accessor.find(filters, options, userId);
|
||||||
if (config && config.scoped) {
|
if (config.scoped) {
|
||||||
patchCursor(cursor, getNodeNamespace(node));
|
patchCursor(cursor, getNodeNamespace(node));
|
||||||
}
|
}
|
||||||
return cursor;
|
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