fix: envelope direct template (#2156)

This commit is contained in:
David Nguyen
2025-11-09 22:23:13 +11:00
committed by GitHub
parent 9fd9613076
commit e2f5e570cf
11 changed files with 301 additions and 155 deletions

View File

@ -11,7 +11,7 @@ export const validateNumberField = (
const { minValue, maxValue, readOnly, required, numberFormat, fontSize } = fieldMeta || {};
if (numberFormat) {
if (numberFormat && value.length > 0) {
const foundRegex = numberFormatValues.find((item) => item.value === numberFormat)?.regex;
if (!foundRegex) {