ywana-core8 0.0.442 → 0.0.445
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +3 -3
package/dist/index.modern.js
CHANGED
@@ -5239,10 +5239,10 @@ var FieldViewer = function FieldViewer(props) {
|
|
5239
5239
|
label = field.label,
|
5240
5240
|
_field$visible = field.visible,
|
5241
5241
|
visible = _field$visible === void 0 ? true : _field$visible,
|
5242
|
-
|
5243
|
-
optional = _field$optional === void 0 ? false : _field$optional;
|
5242
|
+
optional = field.optional;
|
5244
5243
|
if (!visible) return null;
|
5245
|
-
if (optional
|
5244
|
+
if (optional && !value) return null;
|
5245
|
+
console.log('contentviewer>fieldViewer', field, optional === true, !value);
|
5246
5246
|
|
5247
5247
|
switch (type) {
|
5248
5248
|
case TYPES.STRING:
|