Skip to content

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

expanded strData to stringData variable name

TzeYiing3049dff8aafe
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 6f784befeac..1ea2b4d7df7 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -63,14 +63,14 @@ const LogTable = ({ isCustomQuery, data = [] }: Props) => {
}, {}) as LogMap
}, [JSON.stringify(data)])
- const strData = JSON.stringify(data)
+ const stringData = JSON.stringify(data)
useEffect(() => {
if (!hasLogDataFormat) return
if (isNil(data)) return
if (focusedLog && !(focusedLog.id in logMap)) {
setFocusedLog(null)
}
- }, [strData])
+ }, [stringData])
if (!data) return null
@@ -80,7 +80,7 @@ const LogTable = ({ isCustomQuery, data = [] }: Props) => {
const logDataRows = useMemo(() => {
if (!hasLogDataFormat) return data
return Object.values(logMap).sort((a, b) => b.timestamp - a.timestamp)
- }, [strData])
+ }, [stringData])
return (
<section className="flex flex-1 flex-row" style={{ maxHeight }}>
<DataGrid