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