fix: userinfo issue after state refactor (#1061)

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-02-16 09:54:40 +00:00
1 parent 1034b6d517
commit 13e2537dfb
2 files changed
+5

No files matched your search

@@ -128,6 +128,10 @@ export function DataCenterPreloader({ children }: React.PropsWithChildren) {
currentWorkspace: null,
currentDataCenterWorkspace: null,
dataCenterPageList: [],
user:
(await dataCenter.getUserInfo(
dataCenter.providers.filter(p => p.id !== 'local')[0]?.id
)) || null,
});
});
throw promise;