fix: Prevent core rendering before redirecting to login page
Closes #1122
This commit is contained in:
@@ -26,6 +26,7 @@ const Core = React.memo(() => {
|
|||||||
const modal = useSelector(selectors.selectCurrentModal);
|
const modal = useSelector(selectors.selectCurrentModal);
|
||||||
const project = useSelector(selectors.selectCurrentProject);
|
const project = useSelector(selectors.selectCurrentProject);
|
||||||
const board = useSelector(selectors.selectCurrentBoard);
|
const board = useSelector(selectors.selectCurrentBoard);
|
||||||
|
const currentUserId = useSelector(selectors.selectCurrentUserId);
|
||||||
|
|
||||||
// TODO: move to selector?
|
// TODO: move to selector?
|
||||||
const isNewVersionAvailable = useSelector((state) => {
|
const isNewVersionAvailable = useSelector((state) => {
|
||||||
@@ -107,7 +108,7 @@ const Core = React.memo(() => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isInitializing ? (
|
{isInitializing || !currentUserId ? (
|
||||||
<Loader active size="massive" />
|
<Loader active size="massive" />
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user