fix #99
@ -89,6 +89,8 @@ const SummaryPage = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let active = true;
|
let active = true;
|
||||||
|
if (!user || isLoading) return undefined;
|
||||||
|
|
||||||
const loadProjects = async () => {
|
const loadProjects = async () => {
|
||||||
setIsProjectsLoading(true);
|
setIsProjectsLoading(true);
|
||||||
try {
|
try {
|
||||||
@ -108,7 +110,7 @@ const SummaryPage = () => {
|
|||||||
return () => {
|
return () => {
|
||||||
active = false;
|
active = false;
|
||||||
};
|
};
|
||||||
}, [selectedBranch?.id, projectsReloadKey]);
|
}, [user, isLoading, selectedBranch?.id, projectsReloadKey]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let active = true;
|
let active = true;
|
||||||
@ -472,7 +474,7 @@ const SummaryPage = () => {
|
|||||||
initialState: {
|
initialState: {
|
||||||
columnPinning: { right: ['actions'], left: ['mrt-row-expand', 'project'] },
|
columnPinning: { right: ['actions'], left: ['mrt-row-expand', 'project'] },
|
||||||
},
|
},
|
||||||
state: { isLoading: isProjectsLoading },
|
state: { isLoading: isLoading || isProjectsLoading },
|
||||||
});
|
});
|
||||||
|
|
||||||
const summaryProjectTable = useMaterialReactTable({
|
const summaryProjectTable = useMaterialReactTable({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user