From 85f6e1dc65153c89ab8f230c0a5ffa27efe7e42c Mon Sep 17 00:00:00 2001 From: mufazalov Date: Thu, 11 Sep 2025 15:47:53 +0300 Subject: [PATCH] fix(Header): fix add cluster button blinking on refresh --- src/containers/Header/Header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/Header/Header.tsx b/src/containers/Header/Header.tsx index 6ec700328c..ff5706075d 100644 --- a/src/containers/Header/Header.tsx +++ b/src/containers/Header/Header.tsx @@ -67,7 +67,7 @@ function Header() { const isDatabasePage = location.pathname === '/tenant'; const isClustersPage = location.pathname === '/clusters'; - const {isFetching: isClustersFetching, error: clustersError} = + const {isLoading: isClustersLoading, error: clustersError} = clustersApi.useGetClustersListQuery(undefined, { skip: !isClustersPage, }); @@ -75,7 +75,7 @@ function Header() { const isAddClusterAvailable = useAddClusterFeatureAvailable() && uiFactory.onAddCluster !== undefined && - !isClustersFetching && + !isClustersLoading && !isAccessError(clustersError); const isEditDBAvailable = useEditDatabaseFeatureAvailable() && uiFactory.onEditDB !== undefined;