diff --git a/packages/@orbit/utils/src/objects.ts b/packages/@orbit/utils/src/objects.ts index 820cf6f4..74bfe961 100644 --- a/packages/@orbit/utils/src/objects.ts +++ b/packages/@orbit/utils/src/objects.ts @@ -182,7 +182,7 @@ export function deepGet(obj: any, path: string[]): any { let result = obj; while (++index < path.length) { - result = result[path[index]]; + result = result?.[path[index]]; if (!result) { return result; }