Skip to content

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

Update condition

Terry Sutton65ef501d5612
diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index d84f56666f0..7490534beda 100644
--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -102,7 +102,7 @@ const GridHeaderActions = ({
</Tooltip.Root>
)}
- {table.rls_enabled || showRLSWarning ? (
+ {(table.rls_enabled || showRLSWarning) && (
<Link href={`/project/${projectRef}/auth/policies?search=${table.id}`}>
<a>
<Button
@@ -123,7 +123,7 @@ const GridHeaderActions = ({
</Button>
</a>
</Link>
- ) : null}
+ )}
{doesHaveAutoGeneratedAPIdocs && (
<div className="mt-[1px]">