fix
This commit is contained in:
parent
ecbd89cc71
commit
a76909ad3a
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user