Skip to content

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

Only show view referencing record button if value is not null

Joshen Lim005359de1688
diff --git a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
index 387d2616a30..8b458b02882 100644
--- a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
+++ b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
@@ -34,7 +34,7 @@ export const ForeignKeyFormatter = (props: PropsWithChildren<FormatterProps<Supa
<span className="sb-grid-foreign-key-formatter__text">
{value === null ? <NullValue /> : value}
</span>
- {relationship !== undefined && targetTable !== undefined && (
+ {relationship !== undefined && targetTable !== undefined && value !== null && (
<Tooltip.Root delayDuration={0}>
<Tooltip.Trigger>
<Link