mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: dashboard empty state flicker (#4755)
This commit is contained in:
parent
e3ebb9b61c
commit
12f101f52a
@ -35,7 +35,7 @@ export const WorkspaceDashboardView = observer(() => {
|
||||
const { data: currentUserProfile, updateTourCompleted } = useUserProfile();
|
||||
const { captureEvent } = useEventTracker();
|
||||
const { homeDashboardId, fetchHomeDashboardWidgets } = useDashboard();
|
||||
const { joinedProjectIds } = useProject();
|
||||
const { joinedProjectIds, loader } = useProject();
|
||||
|
||||
const [windowWidth] = useSize();
|
||||
|
||||
@ -59,6 +59,7 @@ export const WorkspaceDashboardView = observer(() => {
|
||||
fetchHomeDashboardWidgets(workspaceSlug);
|
||||
}, [fetchHomeDashboardWidgets, workspaceSlug]);
|
||||
|
||||
// TODO: refactor loader implementation
|
||||
return (
|
||||
<>
|
||||
{currentUserProfile && !currentUserProfile.is_tour_completed && (
|
||||
@ -68,7 +69,7 @@ export const WorkspaceDashboardView = observer(() => {
|
||||
)}
|
||||
{homeDashboardId && joinedProjectIds && (
|
||||
<>
|
||||
{joinedProjectIds.length > 0 ? (
|
||||
{joinedProjectIds.length > 0 || loader ? (
|
||||
<>
|
||||
<IssuePeekOverview />
|
||||
<div
|
||||
|
Loading…
Reference in New Issue
Block a user