Skip to content
Snippets Groups Projects
Unverified Commit 5811ccc6 authored by S.H's avatar S.H Committed by GitHub
Browse files

Fix column back button error (#24867)

parent c0ea33e3
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ export default class ColumnBackButton extends React.PureComponent {
onClick();
// 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
} else if (router.location.key) {
} else if (router.route.location.key) {
router.history.goBack();
} else {
router.history.push('/');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment