fix: logout will set status about workspace (#830)

This commit is contained in:
DiamondThree authored and GitHub committed 2023-02-07 06:40:06 +00:00
1 parent d7cb1b5c0a
commit a6100a6ae2
1 file changed
+2
@@ -141,6 +141,7 @@ export const AppStateProvider = ({
} }
setAppState({ setAppState({
...appState, ...appState,
workspaceList: dataCenter.workspaces,
user, user,
}); });
return user; return user;
@@ -151,6 +152,7 @@ export const AppStateProvider = ({
await dataCenter.logout(); await dataCenter.logout();
setAppState({ setAppState({
...appState, ...appState,
workspaceList: dataCenter.workspaces,
user: null, user: null,
}); });
}; };