FIX: do not raise error on transition aborted (#25841)

This commit is contained in:
Joffrey JAFFEUX 2024-02-23 16:44:50 +01:00 committed by GitHub
parent 20a36f0b8f
commit dd292b31cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}