Skip to content

Commit b82e029

Browse files
fix(Tenants): show create DB button only when table is loaded (#2175)
1 parent 2bb7b2d commit b82e029

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/containers/Tenants/Tenants.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export const Tenants = ({additionalTenantsProps}: TenantsProps) => {
8787
};
8888

8989
const renderCreateDBButton = () => {
90-
if (isCreateDBAvailable && clusterName) {
90+
const buttonAvailable = isCreateDBAvailable && clusterName;
91+
92+
if (buttonAvailable && !loading) {
9193
return (
9294
<Button
9395
view="action"

0 commit comments

Comments
 (0)