From a6100a6ae2e72bd681619cf901ea1afe3b5d66a0 Mon Sep 17 00:00:00 2001 From: DiamondThree Date: Tue, 7 Feb 2023 14:40:06 +0800 Subject: [PATCH] fix: logout will set status about workspace (#830) --- packages/app/src/providers/app-state-provider/Provider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/app/src/providers/app-state-provider/Provider.tsx b/packages/app/src/providers/app-state-provider/Provider.tsx index 9ec23cd69c..f31254add3 100644 --- a/packages/app/src/providers/app-state-provider/Provider.tsx +++ b/packages/app/src/providers/app-state-provider/Provider.tsx @@ -141,6 +141,7 @@ export const AppStateProvider = ({ } setAppState({ ...appState, + workspaceList: dataCenter.workspaces, user, }); return user; @@ -151,6 +152,7 @@ export const AppStateProvider = ({ await dataCenter.logout(); setAppState({ ...appState, + workspaceList: dataCenter.workspaces, user: null, }); };