Skip to content

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

Add bugfix for chronological timestamp descending order

TzeYiing84c299db9f8e
diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsx
index 824627828c8..15d0afeb972 100644
--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -65,7 +65,8 @@ const LogTable = ({ isCustomQuery, data }: Props) => {
const maxHeight = isCustomQuery ? 'calc(100vh - 42px - 10rem)' : 'calc(100vh - 42px - 3rem)'
const logDataRows = useMemo(() => {
- return Object.values(logMap).sort((a, b) => a.timestamp - b.timestamp)
+ // sort in timestamp descending order
+ return Object.values(logMap).sort((a, b) => b.timestamp - a.timestamp)
}, [strLogMap])
return (
<section className="flex flex-1 flex-row" style={{ maxHeight }}>