mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +00:00
fix: update type annotation for loading state in NlpTrainForm component
This commit is contained in:
parent
289c1de76e
commit
7b858588f0
@ -67,7 +67,7 @@ const NlpDatasetSample: FC<NlpDatasetSampleProps> = ({
|
|||||||
hasCount: false,
|
hasCount: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState<boolean>(false);
|
||||||
const getNlpValueFromCache = useGetFromCache(EntityType.NLP_VALUE);
|
const getNlpValueFromCache = useGetFromCache(EntityType.NLP_VALUE);
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
const defaultValues: INlpSampleFormAttributes = useMemo(
|
const defaultValues: INlpSampleFormAttributes = useMemo(
|
||||||
|
Loading…
Reference in New Issue
Block a user