Removed unused redirect after compose submit
route: /posts/new no longer exists
This commit is contained in:
parent
17af572ec9
commit
5ca9ea500d
@ -154,8 +154,6 @@ export function submitCompose(routerHistory) {
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
|
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
|
||||||
routerHistory.push('/messages');
|
routerHistory.push('/messages');
|
||||||
} else if (routerHistory && routerHistory.location.pathname === '/posts/new' && window.history.state) {
|
|
||||||
routerHistory.goBack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(insertIntoTagHistory(response.data.tags, status));
|
dispatch(insertIntoTagHistory(response.data.tags, status));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user