1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

check for undefined parent and node (#16584)

This commit is contained in:
Jordan Aasen
2025-09-25 13:45:33 -07:00
committed by GitHub
parent e3a5111a35
commit bed5ea17b7

View File

@@ -1132,7 +1132,7 @@ export class vNextVaultComponent implements OnInit, OnDestroy {
const selectedCollection = await firstValueFrom(this.selectedCollection$); const selectedCollection = await firstValueFrom(this.selectedCollection$);
if (selectedCollection?.node.id === collection.id) { if (selectedCollection?.node.id === collection.id) {
void this.router.navigate([], { void this.router.navigate([], {
queryParams: { collectionId: selectedCollection.parent.node.id ?? null }, queryParams: { collectionId: selectedCollection?.parent?.node.id ?? null },
queryParamsHandling: "merge", queryParamsHandling: "merge",
replaceUrl: true, replaceUrl: true,
}); });