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 61a3db761e
commit c2fc9bca81

View file

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