diff --git a/addons/events/src/components/Event.tsx b/addons/events/src/components/Event.tsx index 1cc500725b7..fec6b93aae8 100644 --- a/addons/events/src/components/Event.tsx +++ b/addons/events/src/components/Event.tsx @@ -126,7 +126,6 @@ class Item extends Component { failed: false, payload: null, payloadString: '', - // eslint-disable-next-line react/no-unused-state, prevPayload: null, }; @@ -142,7 +141,7 @@ class Item extends Component { newState.failed = true; } - this.setState(newState as ItemState); + this.setState(state => ({ ...state, ...newState })); }; onEmitClick = () => {