diff --git a/lib/state.js b/lib/state.js index 94cdeb182..5524c3fa3 100644 --- a/lib/state.js +++ b/lib/state.js @@ -88,7 +88,7 @@ class State { this.state[ID] = toState; - this.eventBus.emit('stateChange', {ID, from: fromState, to: toState, reason}); + this.eventBus.emit('stateChange', {ID, from: fromState, to: state, reason}); } removeKey(ID, path) {