Prevent error page flickering on logout

This commit is contained in:
FinnStutzenstein 2019-05-27 08:48:04 +02:00
parent 309b8118f6
commit 69903192a2

View File

@ -90,9 +90,9 @@ export class AuthService {
} catch (e) { } catch (e) {
// We do nothing on failures. Reboot OpenSlides anyway. // We do nothing on failures. Reboot OpenSlides anyway.
} }
this.router.navigate(['/']);
await this.DS.clear(); await this.DS.clear();
await this.operator.setWhoAmI(response); await this.operator.setWhoAmI(response);
await this.OpenSlides.reboot(); await this.OpenSlides.reboot();
this.router.navigate(['/']);
} }
} }