ywana-core8 0.0.441 → 0.0.444

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.umd.js CHANGED
@@ -5241,9 +5241,12 @@
5241
5241
  item = field.item,
5242
5242
  label = field.label,
5243
5243
  _field$visible = field.visible,
5244
- visible = _field$visible === void 0 ? true : _field$visible;
5244
+ visible = _field$visible === void 0 ? true : _field$visible,
5245
+ _field$optional = field.optional,
5246
+ optional = _field$optional === void 0 ? false : _field$optional;
5245
5247
  if (!visible) return null;
5246
- if (optional && !value) return null;
5248
+ if (optional === true && !value) return null;
5249
+ console.log('contentviewer>fieldViewer', field, optional === true, !value);
5247
5250
 
5248
5251
  switch (type) {
5249
5252
  case TYPES.STRING: