Skip to content

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

chore: clean up row class logic

TzeYiing93a9107b9807
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index b11f03ff012..686b550a43d 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -286,16 +286,9 @@ const LogTable = ({
) : null
}
columns={columns as any}
- rowClass={(r) => {
- const row = r as LogData
-
- let classes = []
- classes.push(
- `${row.id === focusedLog?.id ? '!bg-scale-400 rdg-row--focused' : 'cursor-pointer'}`
- )
-
- return classes.join(' ')
- }}
+ rowClass={(row: LogData) =>
+ row.id === focusedLog?.id ? '!bg-scale-400 rdg-row--focused' : 'cursor-pointer'
+ }
rows={logDataRows}
rowKeyGetter={(r) => {
if (!hasId) return Object.keys(r)[0]