The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Check for value before converting bytea to hex in ForeignKeyFormatter (#33355)
Joshen Limd81832c549bc
diff --git a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsxindex ac5b66b4a79..47ce061611a 100644--- a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx+++ b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx@@ -50,7 +50,8 @@ export const ForeignKeyFormatter = (props: Props) => {)const value = row[column.key]- const formattedValue = foreignKeyColumn?.format === 'bytea' ? convertByteaToHex(value) : value+ const formattedValue =+ foreignKeyColumn?.format === 'bytea' && !!value ? convertByteaToHex(value) : valuereturn (<div className="sb-grid-foreign-key-formatter flex justify-between">