mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: changed ExploreMode and Emitter type in ExploreStateItem
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user