ywana-core8 0.0.448 → 0.0.451
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.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentType.js +2 -1
- package/src/domain/ContentViewer.js +5 -2
package/dist/index.umd.js
CHANGED
@@ -1349,7 +1349,8 @@
|
|
1349
1349
|
break;
|
1350
1350
|
|
1351
1351
|
case TYPES.ENTITY:
|
1352
|
-
if (optional === true
|
1352
|
+
if (optional === true) console.log('OPTIONAL', field, !entryData);
|
1353
|
+
if (optional === true && !entryData) break;
|
1353
1354
|
var child1 = new ContentType(item);
|
1354
1355
|
next[name] = child1.value(entryData);
|
1355
1356
|
break;
|
@@ -5243,8 +5244,11 @@
|
|
5243
5244
|
item = field.item,
|
5244
5245
|
label = field.label,
|
5245
5246
|
_field$visible = field.visible,
|
5246
|
-
visible = _field$visible === void 0 ? true : _field$visible
|
5247
|
+
visible = _field$visible === void 0 ? true : _field$visible,
|
5248
|
+
optional = field.optional;
|
5247
5249
|
if (!visible) return null;
|
5250
|
+
console.log("FieldViewer Optional", field, optional && value === null);
|
5251
|
+
if (optional && value === null) return null;
|
5248
5252
|
|
5249
5253
|
switch (type) {
|
5250
5254
|
case TYPES.STRING:
|