fix: apply feedback

This commit is contained in:
MohamedAliBouhaouala 2025-04-22 17:28:56 +01:00
parent 8255f57abb
commit c2c0bd32a5
2 changed files with 2 additions and 2 deletions

View File

@ -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"),
})}

View File

@ -19,7 +19,7 @@ export interface INlpEntityAttributes {
lookups: Lookup[];
doc?: string;
builtin?: boolean;
weight: number;
weight?: number;
}
export enum NlpLookups {