Chore: changed ExploreMode and Emitter type in ExploreStateItem

pull/25250/head
Lukas Siatka 5 years ago
parent 2fb122bda9
commit 7e0e2027fc
  1. 5
      public/app/features/explore/state/reducers.ts
  2. 4
      public/app/types/explore.ts

@ -70,7 +70,6 @@ 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',
@ -115,7 +114,7 @@ export const makeExploreItemState = (): ExploreItemState => ({
update: makeInitialUpdateState(),
latency: 0,
supportedModes: [],
mode: (null as unknown) as ExploreMode,
mode: null,
isLive: false,
isPaused: false,
urlReplaced: false,
@ -124,7 +123,7 @@ export const makeExploreItemState = (): ExploreItemState => ({
graphResult: null,
logsResult: null,
dedupStrategy: LogsDedupStrategy.none,
eventBridge: (null as unknown) as Emitter,
eventBridge: null,
});
export const createEmptyQueryResponse = (): PanelData => ({

@ -74,7 +74,7 @@ export interface ExploreItemState {
/**
* Emitter to send events to the rest of Grafana.
*/
eventBridge: Emitter;
eventBridge: Emitter | null;
/**
* List of timeseries to be shown in the Explore graph result viewer.
*/
@ -165,7 +165,7 @@ export interface ExploreItemState {
latency: number;
supportedModes: ExploreMode[];
mode: ExploreMode;
mode: ExploreMode | null;
/**
* If true, the view is in live tailing mode.

Loading…
Cancel
Save