Fix authService.logOut not being called (#7790)
This commit is contained in:
parent
e8d0d56c5f
commit
3857dd69c4
|
@ -558,7 +558,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
|
||||
// This must come last otherwise the logout will prematurely trigger
|
||||
// a process reload before all the state service user data can be cleaned up
|
||||
if (userBeingLoggedOut === this.activeUserId) {
|
||||
if (userBeingLoggedOut === preLogoutActiveUserId) {
|
||||
this.searchService.clearIndex();
|
||||
this.authService.logOut(async () => {
|
||||
if (expired) {
|
||||
|
|
Loading…
Reference in New Issue