when constructing a NodePath, inherit parent paths hub if one wasn't passed to us
This commit is contained in:
parent
eb72ea3e5a
commit
60340244b1
@ -17,6 +17,10 @@ export default class NodePath {
|
||||
*/
|
||||
|
||||
static get({ hub, parentPath, parent, container, containerKey, key }) {
|
||||
if (!hub && parentPath) {
|
||||
hub = parentPath.hub;
|
||||
}
|
||||
|
||||
var targetNode = container[key];
|
||||
var paths = parent._paths = parent._paths || [];
|
||||
var path;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user