mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-09-22 09:01:02 +03:00
fix: userInfo being initialized correctly (#963)
This commit is contained in:
parent
49e60737a8
commit
98ceb082fc
@ -33,7 +33,9 @@ export const AppStateProvider = ({
|
||||
await createDefaultWorkspace(dataCenter);
|
||||
}
|
||||
setUser(
|
||||
(await dataCenter.getUserInfo(dataCenter.providers[0]?.id)) || null
|
||||
(await dataCenter.getUserInfo(
|
||||
dataCenter.providers.filter(p => p.id !== 'local')[0]?.id
|
||||
)) || null
|
||||
);
|
||||
setAppState({
|
||||
dataCenter,
|
||||
|
Loading…
Reference in New Issue
Block a user