Enhance VaultComponent to filter refreshing state before processing organization data (#20067)

This commit is contained in:
Jared 2026-04-09 15:44:47 -04:00 committed by GitHub
parent 79c6b51599
commit d4951cbf9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -318,6 +318,7 @@ export class VaultComponent implements OnInit, OnDestroy {
this.restrictedItemTypesService.restricted$,
this.refreshingSubject$,
]).pipe(
filter(([, , , refreshing]) => refreshing),
switchMap(async ([organization, userId, restricted]) => {
// If user swaps organization reset the addAccessToggle
if (!this.showAddAccessToggle || organization) {