mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 {
|
try {
|
||||||
await this.router.transitionTo(this.destination).followRedirects();
|
await this.router.transitionTo(this.destination).followRedirects();
|
||||||
this.sidebarState.setPanel(this.currentPanel.key);
|
this.sidebarState.setPanel(this.currentPanel.key);
|
||||||
|
} catch (e) {
|
||||||
|
if (e.name !== "TransitionAborted") {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
this.isSwitching = false;
|
this.isSwitching = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user