@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.mjs CHANGED
@@ -3219,6 +3219,10 @@ const FieldRenderer = /*#__PURE__*/memo(t0 => {
3219
3219
  if (field.hidden) {
3220
3220
  return null;
3221
3221
  }
3222
+ if (!field.name) {
3223
+ console.error(`Field is missing required "name" property. Field type: "${field.type}". ` + "Every field must have a unique name for form state management.");
3224
+ return null;
3225
+ }
3222
3226
  let t1;
3223
3227
  let t2;
3224
3228
  if ($[0] !== field || $[1] !== form || $[2] !== namePrefix) {