fix: minor enhancements

This commit is contained in:
MohamedAliBouhaouala
2025-05-06 19:03:00 +01:00
committed by Mohamed Marrouchi
parent 5dcd36be98
commit 5d8befacdf
11 changed files with 51 additions and 37 deletions

View File

@@ -145,16 +145,15 @@ export const NlpEntityVarForm: FC<ComponentFormProps<INlpEntity>> = ({
message: t("message.weight_positive_number_error"),
},
validate: (value) =>
value && value! > 0
value && value > 0
? true
: t("message.weight_positive_number_error"),
})}
type="number"
inputProps={{
min: 0.01,
min: 0,
step: 0.01,
inputMode: "numeric",
pattern: "[1-9][0-9]*",
}}
error={!!errors.weight}
helperText={errors.weight?.message}