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:
parent
ac2bc9b9a3
commit
26829507fc
@ -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) {
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user