mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 09:15:01 +03:00
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 project = useSelector(selectors.selectCurrentProject);
|
||||
const board = useSelector(selectors.selectCurrentBoard);
|
||||
const currentUserId = useSelector(selectors.selectCurrentUserId);
|
||||
|
||||
// TODO: move to selector?
|
||||
const isNewVersionAvailable = useSelector((state) => {
|
||||
@@ -107,7 +108,7 @@ const Core = React.memo(() => {
|
||||
|
||||
return (
|
||||
<>
|
||||
{isInitializing ? (
|
||||
{isInitializing || !currentUserId ? (
|
||||
<Loader active size="massive" />
|
||||
) : (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user