@marktiderman/genesis-forms 0.3.0 → 0.3.1

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/testing.js CHANGED
@@ -1142,7 +1142,9 @@ function parseForm(input) {
1142
1142
  if (maxLength2 !== void 0 && !(isInt(maxLength2) && maxLength2 > 0)) {
1143
1143
  issue(`${path}.props.maxLength`, "Must be a whole number above 0.");
1144
1144
  }
1145
- if (isObject2(block.props) && typeof block.type === "string") structuredProps(block.type, block.props, `${path}.props`);
1145
+ }
1146
+ if (typeof block.type === "string" && (block.props === void 0 || isObject2(block.props))) {
1147
+ structuredProps(block.type, block.props ?? {}, `${path}.props`);
1146
1148
  }
1147
1149
  if (validKey) {
1148
1150
  if (keys.has(block.key)) issue(`${path}.key`, `Duplicate key "${String(block.key)}".`);