From 567099a15bf3b7e9ab61860629e04bf86913c012 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 18 Jan 2024 11:26:42 +0100 Subject: [PATCH] fix: table loader (#5937) --- frontend/src/component/project/Project/Project.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/component/project/Project/Project.tsx b/frontend/src/component/project/Project/Project.tsx index 45529fc76f..573f3afda2 100644 --- a/frontend/src/component/project/Project/Project.tsx +++ b/frontend/src/component/project/Project/Project.tsx @@ -64,7 +64,7 @@ export const Project = () => { const projectId = useRequiredPathParam('projectId'); const params = useQueryParams(); const { project, loading, error, refetch } = useProject(projectId); - const ref = useLoading(loading); + const ref = useLoading(loading, '[data-loading-project=true]'); const { setToastData, setToastApiError } = useToast(); const [modalOpen, setModalOpen] = useState(false); const navigate = useNavigate(); @@ -193,7 +193,7 @@ export const Project = () => { condition={project?.mode === 'private'} show={} /> - + {projectName} @@ -210,7 +210,7 @@ export const Project = () => { onClick={() => setModalOpen(true)} tooltipProps={{ title: 'Import' }} data-testid={IMPORT_BUTTON} - data-loading + data-loading-project > @@ -232,7 +232,7 @@ export const Project = () => { {filteredTabs.map((tab) => { return (