1
0
Fork 1
forked from fedi/mastodon

Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)

Fix #13216
This commit is contained in:
Eugen Rochko 2020-04-02 03:12:10 +02:00 committed by GitHub
parent 47ab0bd3e4
commit 4bf5aeae83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,9 @@ class ColumnHeader extends React.PureComponent {
handlePin = () => {
if (!this.props.pinned) {
this.historyBack();
this.context.router.history.replace('/');
}
this.props.onPin();
}