mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
fix: Prevent core rendering before redirecting to login page
Closes #1122
This commit is contained in:
parent
307f4b1d01
commit
f17334b1d7
1 changed files with 2 additions and 1 deletions
|
@ -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" />
|
||||
) : (
|
||||
<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue