From 706af8e5ae5348015b57e20d2d0eb7f252c439dd Mon Sep 17 00:00:00 2001 From: mufazalov Date: Fri, 18 Apr 2025 15:16:17 +0300 Subject: [PATCH] fix(Tenants): show create DB button only when table is loaded --- src/containers/Tenants/Tenants.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/containers/Tenants/Tenants.tsx b/src/containers/Tenants/Tenants.tsx index 782830c622..ca59294c01 100644 --- a/src/containers/Tenants/Tenants.tsx +++ b/src/containers/Tenants/Tenants.tsx @@ -87,7 +87,9 @@ export const Tenants = ({additionalTenantsProps}: TenantsProps) => { }; const renderCreateDBButton = () => { - if (isCreateDBAvailable && clusterName) { + const buttonAvailable = isCreateDBAvailable && clusterName; + + if (buttonAvailable && !loading) { return (