@nocios/crudify-ui 1.0.49 → 1.0.51
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/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -140,6 +140,9 @@ var defaultTranslations = {
|
|
|
140
140
|
"error.unknown": "An unknown error occurred"
|
|
141
141
|
};
|
|
142
142
|
var getNestedValue = (obj, path) => {
|
|
143
|
+
if (obj && obj[path]) {
|
|
144
|
+
return obj[path];
|
|
145
|
+
}
|
|
143
146
|
return path.split(".").reduce((current, key) => {
|
|
144
147
|
return current && typeof current === "object" ? current[key] : void 0;
|
|
145
148
|
}, obj);
|
package/dist/index.mjs
CHANGED
|
@@ -96,6 +96,9 @@ var defaultTranslations = {
|
|
|
96
96
|
"error.unknown": "An unknown error occurred"
|
|
97
97
|
};
|
|
98
98
|
var getNestedValue = (obj, path) => {
|
|
99
|
+
if (obj && obj[path]) {
|
|
100
|
+
return obj[path];
|
|
101
|
+
}
|
|
99
102
|
return path.split(".").reduce((current, key) => {
|
|
100
103
|
return current && typeof current === "object" ? current[key] : void 0;
|
|
101
104
|
}, obj);
|