mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: do not raise error on transition aborted (#25841)
This commit is contained in:
parent
20a36f0b8f
commit
dd292b31cc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user