Added check for follow_requests url on page load

• Added:
- check for follow_requests url on page load to set selected tab item in NotificationsPage
This commit is contained in:
mgabdev 2020-06-09 16:02:02 -04:00
parent ac2bc9b9a3
commit 26829507fc

View File

@ -389,7 +389,12 @@ class UI extends PureComponent {
try {
const search = this.context.router.route.location.search
const qp = queryString.parse(search)
const view = `${qp.view}`.toLowerCase()
let view = `${qp.view}`.toLowerCase()
if (pathname.startsWith('/notifications/follow_requests')) {
view = 'follow_requests'
}
this.props.dispatch(setFilter('active', view))
} catch (error) {
//