ywana-core8 0.0.440 → 0.0.443

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.
@@ -5238,8 +5238,12 @@ var FieldViewer = function FieldViewer(props) {
5238
5238
  item = field.item,
5239
5239
  label = field.label,
5240
5240
  _field$visible = field.visible,
5241
- visible = _field$visible === void 0 ? true : _field$visible;
5241
+ visible = _field$visible === void 0 ? true : _field$visible,
5242
+ _field$optional = field.optional,
5243
+ optional = _field$optional === void 0 ? false : _field$optional;
5242
5244
  if (!visible) return null;
5245
+ if (optional === true && !value) return null;
5246
+ console.log('contentviewer>fieldViewer', field);
5243
5247
 
5244
5248
  switch (type) {
5245
5249
  case TYPES.STRING: