Updated NotificationsPage to reset to 'all' every time page loads

• Updated:
- NotificationsPage to reset to 'all' every time page loads
This commit is contained in:
Developer 2021-02-25 11:06:42 -05:00
parent 573fdbc981
commit 4d43158fe2
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ import {
class NotificationsPage extends React.PureComponent { class NotificationsPage extends React.PureComponent {
componentWillUnmount() {
const { selectedFilter } = this.props
if (selectedFilter !== 'all') {
this.props.dispatch(setFilter('active', 'all'))
}
}
onChangeActiveFilter(notificationType) { onChangeActiveFilter(notificationType) {
this.props.dispatch(setFilter('active', notificationType)) this.props.dispatch(setFilter('active', notificationType))