We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6cb73 commit 1b5f217Copy full SHA for 1b5f217
src/reduxStore/StoreManagerComponent.tsx
@@ -92,14 +92,13 @@ export function GlobalStoreDataComponent(props: React.PropsWithChildren) {
92
getProjectByProjectId(projectId, (res) => {
93
dispatch(setActiveProject(res.data["projectByProjectId"]));
94
})
95
- getRecommendedEncoders(null, (resEncoders) => {
96
- dispatch(setCache(CacheEnum.MODELS_LIST, postProcessingEncoders(resEncoders.data['recommendedEncoders'])))
97
- });
98
}
99
else {
100
dispatch(setActiveProject(null));
101
102
-
+ getRecommendedEncoders(null, (resEncoders) => {
+ dispatch(setCache(CacheEnum.MODELS_LIST, postProcessingEncoders(resEncoders.data['recommendedEncoders'])))
+ });
103
}, [router.query.projectId]);
104
105
useEffect(() => {
0 commit comments