Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix missing parenthesis in policy editor (#38852)

Joshen Limd183b1eefc81
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
index 3ee605e2dbc..5ef3a92f3de 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/index.tsx
@@ -374,6 +374,9 @@ export const PolicyEditorPanel = memo(function ({
<p className="font-mono tracking-tighter">
{showCheckBlock ? (
<>
+ {supportWithCheck && showCheckBlock && (
+ <span className="text-[#ffd700]">) </span>
+ )}
<span className="text-[#569cd6]">with check</span>{' '}
<span className="text-[#ffd700]">(</span>
</>