From 8d54e3b766466c0991ef75688a6775aa557069d5 Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Fri, 13 Sep 2024 13:41:55 +0530 Subject: [PATCH] fix: dashboard list page showing older data (#5961) --- .../src/container/ListOfDashboard/DashboardsList.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsx index 421c7e31c4..c131119a6c 100644 --- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx +++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx @@ -91,6 +91,7 @@ function DashboardsList(): JSX.Element { const { data: dashboardListResponse, isLoading: isDashboardListLoading, + isRefetching: isDashboardListRefetching, error: dashboardFetchError, refetch: refetchDashboardList, } = useGetAllDashboard(); @@ -703,7 +704,9 @@ function DashboardsList(): JSX.Element { - {isDashboardListLoading || isFilteringDashboards ? ( + {isDashboardListLoading || + isFilteringDashboards || + isDashboardListRefetching ? (
@@ -902,7 +905,11 @@ function DashboardsList(): JSX.Element { columns={columns} dataSource={data} showSorterTooltip - loading={isDashboardListLoading || isFilteringDashboards} + loading={ + isDashboardListLoading || + isFilteringDashboards || + isDashboardListRefetching + } showHeader={false} pagination={paginationConfig} />