@zengenti/contensis-react-base 3.0.0-beta.75 → 3.0.0-beta.76

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/cjs/forms.js CHANGED
@@ -484,13 +484,15 @@ const isBusinessEmailValid = (field, value) => {
484
484
  };
485
485
 
486
486
  const MakeFieldType = field => {
487
+ var _field$editor, _field$editor$propert;
488
+
487
489
  if (!field) return null;
488
490
 
489
491
  if (field.dataType === 'string' && field.editor && field.editor.id === 'multiline') {
490
492
  return 'textarea';
491
493
  } else if (field.dataType === 'string' && field.editor && field.editor.id === 'list-dropdown') {
492
494
  return 'dropdown';
493
- } else if (field.editor && field.editor.properties && field.editor.properties.readOnly || field.groupId && field.groupId === 'private') {
495
+ } else if (field !== null && field !== void 0 && (_field$editor = field.editor) !== null && _field$editor !== void 0 && (_field$editor$propert = _field$editor.properties) !== null && _field$editor$propert !== void 0 && _field$editor$propert.readOnly || (field === null || field === void 0 ? void 0 : field.groupId) === 'private' || (field === null || field === void 0 ? void 0 : field.groupId) === 'settings') {
494
496
  return 'hidden';
495
497
  } else if (field.dataType === 'stringArray' || field.dataType === 'boolean') {
496
498
  return 'checkbox';