mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: apply feedback
This commit is contained in:
parent
8255f57abb
commit
c2c0bd32a5
@ -145,7 +145,7 @@ export const NlpEntityVarForm: FC<ComponentFormProps<INlpEntity>> = ({
|
||||
message: t("message.weight_positive_integer_error"),
|
||||
},
|
||||
validate: (value) =>
|
||||
Number.isInteger(value) && value > 0
|
||||
Number.isInteger(value) && value! > 0
|
||||
? true
|
||||
: t("message.weight_positive_integer_error"),
|
||||
})}
|
||||
|
@ -19,7 +19,7 @@ export interface INlpEntityAttributes {
|
||||
lookups: Lookup[];
|
||||
doc?: string;
|
||||
builtin?: boolean;
|
||||
weight: number;
|
||||
weight?: number;
|
||||
}
|
||||
|
||||
export enum NlpLookups {
|
||||
|
Loading…
Reference in New Issue
Block a user