Skip to content

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

fix: restrict log inspection panel tab focus refetch (#37265)

Jonathan Summers-Muir3feb8435742e
diff --git a/apps/studio/data/logs/unified-log-inspection-query.ts b/apps/studio/data/logs/unified-log-inspection-query.ts
index 9b1c2777523..3253e54fe15 100644
--- a/apps/studio/data/logs/unified-log-inspection-query.ts
+++ b/apps/studio/data/logs/unified-log-inspection-query.ts
@@ -11,7 +11,10 @@ import { QuerySearchParamsType } from 'components/interfaces/UnifiedLogs/Unified
import { handleError, post } from 'data/fetchers'
import { ResponseError } from 'types'
import { logsKeys } from './keys'
-import { getUnifiedLogsISOStartEnd } from './unified-logs-infinite-query'
+import {
+ getUnifiedLogsISOStartEnd,
+ UNIFIED_LOGS_QUERY_OPTIONS,
+} from './unified-logs-infinite-query'
// Service flow types - subset of LOG_TYPES that support service flows
export const SERVICE_FLOW_TYPES = [
@@ -182,6 +185,7 @@ export const useUnifiedLogInspectionQuery = <TData = UnifiedLogInspectionData>(
({ signal }) => getUnifiedLogInspection({ projectRef, logId, type, search }, signal),
{
enabled: enabled && typeof projectRef !== 'undefined',
+ ...UNIFIED_LOGS_QUERY_OPTIONS,
...options,
}
)