diff --git a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
index cd81eb356ce..3aa313c4684 100644
--- a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
+++ b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx
@@ -209,7 +209,7 @@ const RedirectToTemplates = () => {
) : (
<>
- {showConfigurationSection ? (
+ {showConfigurationSection && (
Configuration
@@ -266,17 +266,14 @@ const RedirectToTemplates = () => {
- ) : (
- <>
- {hasOverridingRelatedSetting && (
-
-
-
- )}
- >
+ )}
+ {!showConfigurationSection && hasOverridingRelatedSetting && (
+
+
+
)}
{/* Only show title if there is an overriding related setting, as that causes multiple sections to be shown */}