fix: update type annotation for loading state in NlpTrainForm component

This commit is contained in:
Aditya 2025-02-01 10:43:19 +05:30
parent 289c1de76e
commit 7b858588f0

View File

@ -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(