There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: login and upload affine workspace in one run (#1662)
Himself6535d4560e9f6a
diff --git a/apps/web/src/pages/workspace/[workspaceId]/setting.tsx b/apps/web/src/pages/workspace/[workspaceId]/setting.tsxindex 159df1009b..858d6b299b 100644--- a/apps/web/src/pages/workspace/[workspaceId]/setting.tsx+++ b/apps/web/src/pages/workspace/[workspaceId]/setting.tsx@@ -110,10 +110,10 @@ const SettingPage: NextPageWithLayout = () => {to: To,workspace: FlavourToWorkspace[From]): Promise<void> => {- if (to === RemWorkspaceFlavour.AFFINE && !apis.auth.isLogin) {+ const needRefresh =+ to === RemWorkspaceFlavour.AFFINE && !apis.auth.isLogin;+ if (needRefresh) {await apis.signInWithGoogle();- router.reload();- return;}const workspaceId = await transformWorkspace(from, to, workspace);await router.replace({@@ -123,6 +123,9 @@ const SettingPage: NextPageWithLayout = () => {workspaceId,},});+ if (needRefresh) {+ router.reload();+ }},[router, transformWorkspace]);