From a1b9eb1eea563ca98fa0fe69f406ccf9bc624461 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 28 Apr 2023 09:58:01 +0300 Subject: [PATCH] Authentication UI: Hide empty settings section (#67407) --- public/app/features/auth-config/AuthConfigPage.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/app/features/auth-config/AuthConfigPage.tsx b/public/app/features/auth-config/AuthConfigPage.tsx index bf6f13a4e48..1fa89e990bc 100644 --- a/public/app/features/auth-config/AuthConfigPage.tsx +++ b/public/app/features/auth-config/AuthConfigPage.tsx @@ -100,9 +100,9 @@ export const AuthConfigPageUnconnected = ({ ))} )} -
-

Settings

- {authSettings && ( + {!isEmpty(authSettings) && ( +
+

Settings

{Object.entries(authSettings).map(([sectionName, sectionSettings], i) => ( @@ -121,8 +121,8 @@ export const AuthConfigPageUnconnected = ({ ))}
- )} -
+
+ )} );