@mixd-id/web-scaffold 0.1.230406026 → 0.1.230406027
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/helpers.mjs +1 -1
package/package.json
CHANGED
package/src/utils/helpers.mjs
CHANGED
|
@@ -132,7 +132,7 @@ const accessNestedObject = function(obj, path) {
|
|
|
132
132
|
let nestedObj = obj;
|
|
133
133
|
|
|
134
134
|
for (let key of keys) {
|
|
135
|
-
if (nestedObj.hasOwnProperty(key)) {
|
|
135
|
+
if (nestedObj && nestedObj.hasOwnProperty(key)) {
|
|
136
136
|
nestedObj = nestedObj[key];
|
|
137
137
|
} else {
|
|
138
138
|
// Return undefined if any key in the path is missing
|