Skip to content

Commit

Permalink
fix(client-electron): preserve metadata in action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcincichocki committed Aug 25, 2021
1 parent 1a37899 commit 497601b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron/main/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class Store {
}

private notify(action: Action) {
const stateAction = { payload: this.state, type: action.type };
const stateAction = { ...action, payload: this.state };

this.worker.send('state', stateAction);
this.renderer.send('state', stateAction);
Expand Down

0 comments on commit 497601b

Please sign in to comment.