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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user