From 1aa7b6dbf52cb8aa96ecb9d97bec4b484849ef97 Mon Sep 17 00:00:00 2001
From: Danny White <3104761+dnywh@users.noreply.github.com>
Date: Mon, 3 Nov 2025 14:26:03 +1100
Subject: [PATCH] clearer ternary
---
.../[ref]/auth/templates/[templateId].tsx | 21 ++++++++-----------
1 file changed, 9 insertions(+), 12 deletions(-)
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 */}