mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +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$);
|
const selectedCollection = await firstValueFrom(this.selectedCollection$);
|
||||||
if (selectedCollection?.node.id === collection.id) {
|
if (selectedCollection?.node.id === collection.id) {
|
||||||
void this.router.navigate([], {
|
void this.router.navigate([], {
|
||||||
queryParams: { collectionId: selectedCollection.parent.node.id ?? null },
|
queryParams: { collectionId: selectedCollection?.parent?.node.id ?? null },
|
||||||
queryParamsHandling: "merge",
|
queryParamsHandling: "merge",
|
||||||
replaceUrl: true,
|
replaceUrl: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user