1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 20:24:01 +00:00

account for null folderIds

This commit is contained in:
jaasen-livefront
2025-12-23 15:44:16 -08:00
parent d04e02acda
commit bffd6471eb
2 changed files with 4 additions and 8 deletions

View File

@@ -158,7 +158,7 @@ export class VaultComponent<C extends CipherViewLike>
cipherId: string | null = null;
favorites = false;
type: CipherType | null = null;
folderId: string | null = null;
folderId: string | null | undefined = null;
collectionId: string | null = null;
organizationId: string | null = null;
myVaultOnly = false;
@@ -980,9 +980,7 @@ export class VaultComponent<C extends CipherViewLike>
// clear out organizationId when the user switches to a personal vault filter
this.addOrganizationId = null;
}
if (this.activeFilter.selectedFolderId && this.activeFilter.selectedFolder) {
this.folderId = this.activeFilter.selectedFolderId;
}
this.folderId = this.activeFilter.selectedFolderId;
if (this.config == null) {
return;

View File

@@ -161,7 +161,7 @@ export class VaultV2Component<C extends CipherViewLike>
cipherId: string | null = null;
favorites = false;
type: CipherType | null = null;
folderId: string | null = null;
folderId: string | null | undefined = null;
collectionId: string | null = null;
organizationId: string | null = null;
myVaultOnly = false;
@@ -983,9 +983,7 @@ export class VaultV2Component<C extends CipherViewLike>
// clear out organizationId when the user switches to a personal vault filter
this.addOrganizationId = null;
}
if (this.activeFilter.selectedFolderId && this.activeFilter.selectedFolder) {
this.folderId = this.activeFilter.selectedFolderId;
}
this.folderId = this.activeFilter.selectedFolderId;
if (this.config == null) {
return;