mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix column back button error (#24867)
This commit is contained in:
parent
c0ea33e3fc
commit
5811ccc611
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export default class ColumnBackButton extends React.PureComponent {
|
||||||
onClick();
|
onClick();
|
||||||
// Check if there is a previous page in the app to go back to per https://stackoverflow.com/a/70532858/9703201
|
// Check if there is a previous page in the app to go back to per https://stackoverflow.com/a/70532858/9703201
|
||||||
// When upgrading to V6, check `location.key !== 'default'` instead per https://github.com/remix-run/history/blob/main/docs/api-reference.md#location
|
// When upgrading to V6, check `location.key !== 'default'` instead per https://github.com/remix-run/history/blob/main/docs/api-reference.md#location
|
||||||
} else if (router.location.key) {
|
} else if (router.route.location.key) {
|
||||||
router.history.goBack();
|
router.history.goBack();
|
||||||
} else {
|
} else {
|
||||||
router.history.push('/');
|
router.history.push('/');
|
||||||
|
|
Loading…
Reference in a new issue