1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

Fix optional chaining for collectionId in vault navigation query parameters (#18652)

This commit is contained in:
Jared
2026-02-05 10:39:33 -05:00
committed by GitHub
parent 2d8f74bf70
commit 479273a883

View File

@@ -1318,7 +1318,7 @@ export class VaultComponent implements OnInit, OnDestroy {
selectedCollection?.node.id === c.id
) {
void this.router.navigate([], {
queryParams: { collectionId: selectedCollection.parent.node.id ?? null },
queryParams: { collectionId: selectedCollection.parent?.node.id ?? null },
queryParamsHandling: "merge",
replaceUrl: true,
});