Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/davidkpiano/xstate
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Oct 18, 2018
2 parents 80f52d1 + 1cf76b7 commit dc7a315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StateNode.ts
Expand Up @@ -1249,7 +1249,7 @@ class StateNode<
* @param statePath The string or string array relative path to the state node.
*/
public getStateNodeByPath(statePath: string | string[]): StateNode<TContext> {
const arrayStatePath = toStatePath(statePath, this.delimiter);
const arrayStatePath = toStatePath(statePath, this.delimiter).slice();
let currentStateNode: StateNode<TContext> = this;
while (arrayStatePath.length) {
const key = arrayStatePath.shift()!;
Expand Down

0 comments on commit dc7a315

Please sign in to comment.