fix: login when no user. enabled on member

This commit is contained in:
DiamondThree
2023-01-12 11:50:49 +08:00
parent 753c59b534
commit 1b544463c2
2 changed files with 5 additions and 20 deletions

View File

@@ -44,7 +44,7 @@ export const useWorkspaceHelper = () => {
cancelText: 'Skip',
}).then(async confirm => {
if (confirm && currentWorkspace) {
if (user) {
if (!user) {
await login();
}
const newWorkspaceId = await dataCenter.enableWorkspaceCloud(