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 (#4203)
LongYinan6af7aefe0056
diff --git a/apps/core/src/pages/sign-in.tsx b/apps/core/src/pages/sign-in.tsxindex 91cf56513a..d59223101b 100644--- a/apps/core/src/pages/sign-in.tsx+++ b/apps/core/src/pages/sign-in.tsx@@ -29,14 +29,16 @@ export const Component = () => {await onceSignedIn();setAuthAtom(prev => ({ ...prev, onceSignedIn: undefined }));}- if (location.state.callbackURL) {+ if (location.state?.callbackURL) {navigate(location.state.callbackURL, {replace: true,});}}};- afterSignedIn();+ afterSignedIn().catch(err => {+ console.error(err);+ });}, [location.state.callbackURL,loginStatus,