@punks/backend-entity-manager 0.0.419 → 0.0.421

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/cjs/index.js CHANGED
@@ -41047,7 +41047,7 @@ const fieldTextValidator = (item, selector, params) => {
41047
41047
  : [{ errorCode: params.regexErrorCode ?? "regex" }]),
41048
41048
  ];
41049
41049
  };
41050
- const allErrors = values.flatMap(validateSingle);
41050
+ const allErrors = values?.flatMap(validateSingle) ?? [];
41051
41051
  return {
41052
41052
  isValid: isRequiredValid && allErrors.length === 0,
41053
41053
  validationErrors: [