1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-19 10:54:00 +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 jaasen-livefront
parent 4871531b5e
commit dd371e32ba

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,
});