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(core): location.state maybe null (#4236)
LongYinanb8e3e4994ec2
diff --git a/apps/core/src/pages/sign-in.tsx b/apps/core/src/pages/sign-in.tsxindex d59223101b..38a2107ab1 100644--- a/apps/core/src/pages/sign-in.tsx+++ b/apps/core/src/pages/sign-in.tsx@@ -9,7 +9,7 @@ import { AuthPanel } from '../components/affine/auth';import { useCurrentLoginStatus } from '../hooks/affine/use-current-login-status';interface LocationState {- state: {+ state?: {callbackURL?: string;};}@@ -40,7 +40,7 @@ export const Component = () => {console.error(err);});}, [- location.state.callbackURL,+ location.state?.callbackURL,loginStatus,navigate,onceSignedIn,