Skip to content

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

fix failing tests

TzeYiing10947126f339
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 9ad1445cc21..d317b28f12f 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -57,7 +57,7 @@ const LogTable = ({
error,
}: Props) => {
const [focusedLog, setFocusedLog] = useState<LogData | null>(null)
- const firstRow: LogData | undefined = data?.[0]
+ const firstRow: LogData | undefined = data?.[0] as LogData
const columnNames = Object.keys(data[0] || {})
const hasId = columnNames.includes('id')
const hasTimestamp = columnNames.includes('timestamp')
diff --git a/studio/components/interfaces/Settings/Logs/Logs.types.ts b/studio/components/interfaces/Settings/Logs/Logs.types.ts
index 66a2e295f3c..276778d3740 100644
--- a/studio/components/interfaces/Settings/Logs/Logs.types.ts
+++ b/studio/components/interfaces/Settings/Logs/Logs.types.ts
@@ -34,7 +34,7 @@ export interface PreviewLogData extends CustomLogData {
event_message: string
metadata: Metadata
}
-export type LogData = CustomLogData & Partial<PreviewLogData>
+export type LogData = CustomLogData & PreviewLogData
export interface LogTemplate {
label?: string