ywana-core8 0.0.441 → 0.0.442

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 CHANGED
@@ -5246,9 +5246,11 @@ var FieldViewer = function FieldViewer(props) {
5246
5246
  item = field.item,
5247
5247
  label = field.label,
5248
5248
  _field$visible = field.visible,
5249
- visible = _field$visible === void 0 ? true : _field$visible;
5249
+ visible = _field$visible === void 0 ? true : _field$visible,
5250
+ _field$optional = field.optional,
5251
+ optional = _field$optional === void 0 ? false : _field$optional;
5250
5252
  if (!visible) return null;
5251
- if (optional && !value) return null;
5253
+ if (optional === true && !value) return null;
5252
5254
 
5253
5255
  switch (type) {
5254
5256
  case TYPES.STRING: