@connect-soft/form-generator 1.1.0-alpha4 → 1.1.0-alpha5
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.js
CHANGED
|
@@ -3239,6 +3239,10 @@ const FieldRenderer = /*#__PURE__*/React.memo(t0 => {
|
|
|
3239
3239
|
if (field.hidden) {
|
|
3240
3240
|
return null;
|
|
3241
3241
|
}
|
|
3242
|
+
if (!field.name) {
|
|
3243
|
+
console.error(`Field is missing required "name" property. Field type: "${field.type}". ` + "Every field must have a unique name for form state management.");
|
|
3244
|
+
return null;
|
|
3245
|
+
}
|
|
3242
3246
|
let t1;
|
|
3243
3247
|
let t2;
|
|
3244
3248
|
if ($[0] !== field || $[1] !== form || $[2] !== namePrefix) {
|