Skip to content

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

added object formatting

TzeYiing23e1a52efd42
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 82de85cc2d3..3ac48778789 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -29,7 +29,16 @@ const LogTable = ({ data = [], queryType }: Props) => {
const hasId = columnNames.includes('id')
const hasTimestamp = columnNames.includes('timestamp')
- const DEFAULT_COLUMNS = columnNames.map((v) => ({ key: v, name: v, resizable: true }))
+ const DEFAULT_COLUMNS = columnNames.map((v) => {
+ let formatter = undefined
+ const firstRow: any = data[0]
+ const value = firstRow?.[v]
+ if (typeof value === 'object') {
+ formatter = () => `[Object]`
+ }
+
+ return { key: v, name: v, resizable: true, formatter }
+ })
let columns
if (!queryType) {