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:
parent
573fdbc981
commit
4d43158fe2
|
@ -16,6 +16,13 @@ import {
|
|||
|
||||
class NotificationsPage extends React.PureComponent {
|
||||
|
||||
componentWillUnmount() {
|
||||
const { selectedFilter } = this.props
|
||||
if (selectedFilter !== 'all') {
|
||||
this.props.dispatch(setFilter('active', 'all'))
|
||||
}
|
||||
}
|
||||
|
||||
onChangeActiveFilter(notificationType) {
|
||||
this.props.dispatch(setFilter('active', notificationType))
|
||||
|
||||
|
|
Loading…
Reference in New Issue