~cytrogen/masto-fe

5811ccc6117ed3a506c0b4e36acda5cd42315a7d — S.H 2 years ago c0ea33e
Fix column back button error (#24867)

1 files changed, 1 insertions(+), 1 deletions(-)

M app/javascript/mastodon/components/column_back_button.jsx
M app/javascript/mastodon/components/column_back_button.jsx => app/javascript/mastodon/components/column_back_button.jsx +1 -1
@@ 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('/');