Fix authService.logOut not being called (#7790)

This commit is contained in:
Oscar Hinton 2024-02-02 16:53:31 +01:00 committed by GitHub
parent e8d0d56c5f
commit 3857dd69c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) {