From fed1640ae46a27889ad904ec8c781973d540a19a Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 31 Jan 2025 12:53:39 +0530 Subject: [PATCH] feat: rm loading from runs table --- src/components/run/RunsTable.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/components/run/RunsTable.tsx b/src/components/run/RunsTable.tsx index a3b8dfd4..53d29433 100644 --- a/src/components/run/RunsTable.tsx +++ b/src/components/run/RunsTable.tsx @@ -133,7 +133,6 @@ export const RunsTable: React.FC = ({ const [rows, setRows] = useState([]); const [searchTerm, setSearchTerm] = useState(''); - const [isLoading, setIsLoading] = useState(true); const [paginationStates, setPaginationStates] = useState({}); @@ -212,7 +211,6 @@ export const RunsTable: React.FC = ({ const fetchRuns = useCallback(async () => { try { - setIsLoading(true); const runs = await getStoredRuns(); if (runs) { const parsedRows: Data[] = runs.map((run: any, index: number) => ({ @@ -225,8 +223,6 @@ export const RunsTable: React.FC = ({ } } catch (error) { notify('error', t('runstable.notifications.fetch_error')); - } finally { - setIsLoading(false); } }, [notify, t]); @@ -364,14 +360,6 @@ export const RunsTable: React.FC = ({ : ; }, [accordionSortConfigs]); - if (isLoading) { - return ( - - - - ); - } - return (