diff --git a/spiffworkflow-frontend/src/components/CustomForm.tsx b/spiffworkflow-frontend/src/components/CustomForm.tsx index 25b0f2929..abf63f229 100644 --- a/spiffworkflow-frontend/src/components/CustomForm.tsx +++ b/spiffworkflow-frontend/src/components/CustomForm.tsx @@ -262,9 +262,7 @@ export default function CustomForm({ (formDataToCheck[propertyKey].min === undefined || formDataToCheck[propertyKey].max === undefined) ) { - errors[propertyKey].addError( - `must have valid Minimum and Maximum on ${propertyKey}` - ); + errors[propertyKey].addError('must have valid Minimum and Maximum'); } if ( formDataToCheck[propertyKey].min < diff --git a/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx b/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx index b9908152d..e83444fe5 100644 --- a/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx +++ b/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx @@ -117,17 +117,19 @@ export default function NumericRangeField({ }; let minHelperText = ''; - if (minNumber !== undefined) { - minHelperText = `Min: ${formatNumberString(minNumber?.toString() || '')}`; - } let maxHelperText = ''; - if (maxNumber !== undefined) { - maxHelperText = `Max: ${formatNumberString(maxNumber?.toString() || '')}`; + if (minNumber !== undefined || maxNumber !== undefined) { + minHelperText = `Min: ${ + formatNumberString(minNumber?.toString() || '') || '-∞' + }`; + maxHelperText = `Max: ${ + formatNumberString(maxNumber?.toString() || '') || '∞' + }`; } return (
-
+
{required ? commonAttributes.labelWithRequiredIndicator