@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406026",
4
+ "version": "0.1.230406027",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -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