Skip to content

Commit

Permalink
Improve Mobx example (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
yupkey authored Sep 30, 2020
1 parent 58d88ec commit b2c2115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mobx-example/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const Store = function () {
});
}),

removeSnackbar: action((note) => {
this.notifications.remove(note);
removeSnackbar: action((key) => {
this.notifications = this.notifications.filter(notification => notification.key !== key);
}),
});
};
Expand Down

0 comments on commit b2c2115

Please sign in to comment.