Skip to content

Commit

Permalink
fix null accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Oct 14, 2024
1 parent 9426748 commit c6754a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class EditorBaseTableComponent<T extends HasIdentification>
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);
Expand Down

0 comments on commit c6754a5

Please sign in to comment.