mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix: add judgement of currentWorkspace
This commit is contained in:
@@ -40,7 +40,7 @@ export const SyncPage = ({ workspace }: { workspace: WorkspaceInfo }) => {
|
||||
confirmText: user ? 'Enable' : 'Sign in and Enable',
|
||||
cancelText: 'Skip',
|
||||
}).then(async confirm => {
|
||||
if (confirm) {
|
||||
if (confirm && currentWorkspace) {
|
||||
// if (user) {
|
||||
// await login();
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user