diff --git a/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js b/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js index 4482faad44f..baf69d0f74a 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js +++ b/app/assets/javascripts/discourse/app/components/sidebar/switch-panel-buttons.js @@ -31,6 +31,10 @@ export default class SwitchPanelButtons extends Component { try { await this.router.transitionTo(this.destination).followRedirects(); this.sidebarState.setPanel(this.currentPanel.key); + } catch (e) { + if (e.name !== "TransitionAborted") { + throw e; + } } finally { this.isSwitching = false; }