Skip to content

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

Fix logs previewr key prop issue

Joshen Lim493d992d4733
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 13259d0fa02..32467500c8d 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -70,7 +70,7 @@ const LogTable = ({
const hasId = columnNames.includes('id')
const hasTimestamp = columnNames.includes('timestamp')
- const DEFAULT_COLUMNS = columnNames.map((v) => {
+ const DEFAULT_COLUMNS = columnNames.map((v, idx: number) => {
let formatter = undefined
formatter = (received: FormatterArg) => {
@@ -83,7 +83,14 @@ const LogTable = ({
return String(value)
}
}
- return { key: v, name: v, resizable: true, formatter, header: v, minWidth: 128 }
+ return {
+ key: `logs-column-${idx}`,
+ name: v,
+ resizable: true,
+ formatter,
+ header: v,
+ minWidth: 128,
+ }
})
let columns