From bed5ea17b7096d60c80a6302d60482299952f8e6 Mon Sep 17 00:00:00 2001 From: Jordan Aasen <166539328+jaasen-livefront@users.noreply.github.com> Date: Thu, 25 Sep 2025 13:45:33 -0700 Subject: [PATCH] check for undefined parent and node (#16584) --- .../admin-console/organizations/collections/vault.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/admin-console/organizations/collections/vault.component.ts b/apps/web/src/app/admin-console/organizations/collections/vault.component.ts index edd4ea3f9d..64aa693646 100644 --- a/apps/web/src/app/admin-console/organizations/collections/vault.component.ts +++ b/apps/web/src/app/admin-console/organizations/collections/vault.component.ts @@ -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, });