Skip to content

Commit 1b5f217

Browse files
cannot add new downloaded model in the model download page
1 parent 9f6cb73 commit 1b5f217

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/reduxStore/StoreManagerComponent.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,13 @@ export function GlobalStoreDataComponent(props: React.PropsWithChildren) {
9292
getProjectByProjectId(projectId, (res) => {
9393
dispatch(setActiveProject(res.data["projectByProjectId"]));
9494
})
95-
getRecommendedEncoders(null, (resEncoders) => {
96-
dispatch(setCache(CacheEnum.MODELS_LIST, postProcessingEncoders(resEncoders.data['recommendedEncoders'])))
97-
});
9895
}
9996
else {
10097
dispatch(setActiveProject(null));
10198
}
102-
99+
getRecommendedEncoders(null, (resEncoders) => {
100+
dispatch(setCache(CacheEnum.MODELS_LIST, postProcessingEncoders(resEncoders.data['recommendedEncoders'])))
101+
});
103102
}, [router.query.projectId]);
104103

105104
useEffect(() => {

0 commit comments

Comments
 (0)