1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +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$);
if (selectedCollection?.node.id === collection.id) {
void this.router.navigate([], {
queryParams: { collectionId: selectedCollection.parent.node.id ?? null },
queryParams: { collectionId: selectedCollection?.parent?.node.id ?? null },
queryParamsHandling: "merge",
replaceUrl: true,
});