Authentication UI: Hide empty settings section (#67407)

This commit is contained in:
Alexander Zobnin
2023-04-28 09:58:01 +03:00
committed by GitHub
parent 1fbac96bd4
commit a1b9eb1eea

View File

@@ -100,9 +100,9 @@ export const AuthConfigPageUnconnected = ({
))}
</div>
)}
<div className={styles.settingsSection}>
<h3>Settings</h3>
{authSettings && (
{!isEmpty(authSettings) && (
<div className={styles.settingsSection}>
<h3>Settings</h3>
<table className="filter-table">
<tbody>
{Object.entries(authSettings).map(([sectionName, sectionSettings], i) => (
@@ -121,8 +121,8 @@ export const AuthConfigPageUnconnected = ({
))}
</tbody>
</table>
)}
</div>
</div>
)}
</Page.Contents>
</Page>
);