mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(core): location.state maybe null (#4236)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user