mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-12-22 21:26:52 +00:00
Fix pinning a column in web UI sometimes redirecting out of web UI (#13376)
Fix #13216
This commit is contained in:
parent
47ab0bd3e4
commit
4bf5aeae83
|
@ -76,8 +76,9 @@ class ColumnHeader extends React.PureComponent {
|
|||
|
||||
handlePin = () => {
|
||||
if (!this.props.pinned) {
|
||||
this.historyBack();
|
||||
this.context.router.history.replace('/');
|
||||
}
|
||||
|
||||
this.props.onPin();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue