From c6754a5a445ef21dfb492164c692d49fba127704 Mon Sep 17 00:00:00 2001 From: "Kyle J. Kemp" Date: Mon, 14 Oct 2024 06:17:21 -0500 Subject: [PATCH] fix null accessor --- .../components/editor-base-table/editor-base-table.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/components/editor-base-table/editor-base-table.component.ts b/src/app/shared/components/editor-base-table/editor-base-table.component.ts index bd651ed..970076c 100644 --- a/src/app/shared/components/editor-base-table/editor-base-table.component.ts +++ b/src/app/shared/components/editor-base-table/editor-base-table.component.ts @@ -46,7 +46,7 @@ export class EditorBaseTableComponent this.dataKey ] as unknown as T[]; - const item = potentialItems.find((i) => i._id === loadItemId); + const item = potentialItems?.find((i) => i._id === loadItemId); if (item) { this.editExisting(item);