Skip to content

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

hide chart when refreshing

TzeYiing5050ee3617c7
diff --git a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
index 8c7f2cdfafc..0c78cc3a3db 100644
--- a/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogEventChart.tsx
@@ -5,7 +5,7 @@ import utc from 'dayjs/plugin/utc'
import { useMemo } from 'react'
dayjs.extend(utc)
interface Props {
- data: LogData[]
+ data?: LogData[]
onBarClick: (timestamp: number) => void
}
diff --git a/studio/pages/project/[ref]/settings/logs/[type].tsx b/studio/pages/project/[ref]/settings/logs/[type].tsx
index 6a2ee885741..f529644d542 100644
--- a/studio/pages/project/[ref]/settings/logs/[type].tsx
+++ b/studio/pages/project/[ref]/settings/logs/[type].tsx
@@ -294,7 +294,7 @@ export const LogPage: NextPage = () => {
{showChart && mode !== 'custom' && (
<div>
<LogEventChart
- data={logData}
+ data={!isValidating? logData: undefined}
onBarClick={(timestampMicro) => {
handleSearch({ query: params.search_query, fromMicro: timestampMicro })
}}