From a76909ad3a16f909c24b45f9bdb5b0840ddde59e Mon Sep 17 00:00:00 2001 From: PotapovaA Date: Tue, 18 Aug 2026 13:02:43 +0300 Subject: [PATCH] fix --- web/src/pages/ProjectPages/SummaryPage.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/pages/ProjectPages/SummaryPage.jsx b/web/src/pages/ProjectPages/SummaryPage.jsx index 50ba63b..453a7f3 100644 --- a/web/src/pages/ProjectPages/SummaryPage.jsx +++ b/web/src/pages/ProjectPages/SummaryPage.jsx @@ -89,6 +89,8 @@ const SummaryPage = () => { useEffect(() => { let active = true; + if (!user || isLoading) return undefined; + const loadProjects = async () => { setIsProjectsLoading(true); try { @@ -108,7 +110,7 @@ const SummaryPage = () => { return () => { active = false; }; - }, [selectedBranch?.id, projectsReloadKey]); + }, [user, isLoading, selectedBranch?.id, projectsReloadKey]); useEffect(() => { let active = true; @@ -472,7 +474,7 @@ const SummaryPage = () => { initialState: { columnPinning: { right: ['actions'], left: ['mrt-row-expand', 'project'] }, }, - state: { isLoading: isProjectsLoading }, + state: { isLoading: isLoading || isProjectsLoading }, }); const summaryProjectTable = useMaterialReactTable({