diff --git a/app/javascript/gabsocial/pages/notifications_page.js b/app/javascript/gabsocial/pages/notifications_page.js index 6de64023..c7e5cbee 100644 --- a/app/javascript/gabsocial/pages/notifications_page.js +++ b/app/javascript/gabsocial/pages/notifications_page.js @@ -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))