diff --git a/public/app/features/explore/state/reducers.ts b/public/app/features/explore/state/reducers.ts index e3bf248952c..e4e7c628991 100644 --- a/public/app/features/explore/state/reducers.ts +++ b/public/app/features/explore/state/reducers.ts @@ -12,6 +12,7 @@ import { TimeZone, toLegacyResponseData, ExploreMode, + LogsDedupStrategy, } from '@grafana/data'; import { RefreshPicker } from '@grafana/ui'; import { LocationUpdate } from '@grafana/runtime'; @@ -69,6 +70,7 @@ import { } from './actionTypes'; import { ResultProcessor } from '../utils/ResultProcessor'; import { updateLocation } from '../../../core/actions'; +import { Emitter } from 'app/core/core'; export const DEFAULT_RANGE = { from: 'now-6h', @@ -105,7 +107,6 @@ export const makeExploreItemState = (): ExploreItemState => ({ to: null, }, scanning: false, - scanRange: null, showingGraph: true, showingTable: true, loading: false, @@ -114,11 +115,16 @@ export const makeExploreItemState = (): ExploreItemState => ({ update: makeInitialUpdateState(), latency: 0, supportedModes: [], - mode: null, + mode: (null as unknown) as ExploreMode, isLive: false, isPaused: false, urlReplaced: false, queryResponse: createEmptyQueryResponse(), + tableResult: null, + graphResult: null, + logsResult: null, + dedupStrategy: LogsDedupStrategy.none, + eventBridge: (null as unknown) as Emitter, }); export const createEmptyQueryResponse = (): PanelData => ({