fallback to current parentPath if none was provided

This commit is contained in:
Sebastian McKenzie 2015-03-08 04:04:48 +11:00
parent 6f53980bfc
commit 572129542d

View File

@ -61,7 +61,7 @@ export default class TraversalPath {
this.shouldSkip = false;
this.shouldStop = false;
this.parentPath = parentPath;
this.parentPath = parentPath || this.parentPath;
this.context = context;
this.state = context.state;
this.opts = context.opts;