Skip to content

Commit

Permalink
[sm] Fix states getter
Browse files Browse the repository at this point in the history
  • Loading branch information
smialy committed May 2, 2018
1 parent 881f577 commit f59b015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sjs-sm/src/machine.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class StateMachine {
return this._states.get(name);
}
get states() {
return Array.from(this._states.values());
return Array.from(this._states);
}
removeState(name) {
return this._states.delete(name);
Expand Down

0 comments on commit f59b015

Please sign in to comment.