mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 21:41:52 +08:00
fix: login when no user. enabled on member
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user