chore
This commit is contained in:
parent
361d7a5619
commit
358705625a
@ -13,7 +13,8 @@ export const Downloads: FC = observer(() => {
|
||||
const {t} = useTranslation();
|
||||
const finishedDownloads = commonStore.downloadList.filter((status) => status.done).length;
|
||||
useEffect(() => {
|
||||
refreshLocalModels({models: commonStore.modelSourceList}, false);
|
||||
if (finishedDownloads > 0)
|
||||
refreshLocalModels({models: commonStore.modelSourceList}, false);
|
||||
console.log('finishedDownloads:', finishedDownloads);
|
||||
}, [finishedDownloads]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user