The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add guard in convertByteaToHex (#34194)
Joshen Lim7dc1084afacd
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.tsindex 3fe9a5d7d86..3e7f649083f 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts@@ -267,9 +267,9 @@ export const isValueTruncated = (value: string | null | undefined) => {export const convertByteaToHex = (value: { type: 'Buffer'; data: number[] }) => {// [Alaister] this is just a safeguard to catch sneaky null values- if (!value) {+ try {+ return `\\x${Buffer.from(value.data).toString('hex')}`+ } catch {return value}-- return `\\x${Buffer.from(value.data).toString('hex')}`}