mushroom-cli 1.2.0-alpha.3 → 1.2.0-alpha.4
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/README.md +6 -0
- package/docs/doc-mt.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/docs/doc-mt.js
CHANGED
|
@@ -320,6 +320,7 @@ function getModalInput(excludedFields, fields, options) {
|
|
|
320
320
|
var obj = fields;
|
|
321
321
|
var segs = item.split(".");
|
|
322
322
|
for (var i = 0; i < segs.length; i++) {
|
|
323
|
+
if (!obj) return;
|
|
323
324
|
var seg = segs[i];
|
|
324
325
|
if (!(seg in obj))
|
|
325
326
|
return;
|
|
@@ -329,7 +330,7 @@ function getModalInput(excludedFields, fields, options) {
|
|
|
329
330
|
else if (obj[seg].type === "object")
|
|
330
331
|
obj = obj[seg].fields;
|
|
331
332
|
else if (obj[seg].type === "array")
|
|
332
|
-
obj = obj[seg].items;
|
|
333
|
+
obj = obj[seg].items?.fields;
|
|
333
334
|
else
|
|
334
335
|
return;
|
|
335
336
|
}
|