@punks/backend-entity-manager 0.0.419 → 0.0.420

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/esm/index.js CHANGED
@@ -41032,7 +41032,7 @@ const fieldTextValidator = (item, selector, params) => {
41032
41032
  : [{ errorCode: params.regexErrorCode ?? "regex" }]),
41033
41033
  ];
41034
41034
  };
41035
- const allErrors = values.flatMap(validateSingle);
41035
+ const allErrors = values?.flatMap(validateSingle) ?? [];
41036
41036
  return {
41037
41037
  isValid: isRequiredValid && allErrors.length === 0,
41038
41038
  validationErrors: [