mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: minor enhancements
This commit is contained in:
committed by
Mohamed Marrouchi
parent
5dcd36be98
commit
5d8befacdf
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user