mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +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,
|
||||
},
|
||||
);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [loading, setLoading] = useState<boolean>(false);
|
||||
const getNlpValueFromCache = useGetFromCache(EntityType.NLP_VALUE);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
const defaultValues: INlpSampleFormAttributes = useMemo(
|
||||
|
Loading…
Reference in New Issue
Block a user