Commit b590c4da by Torkel Ödegaard Committed by GitHub

Merge pull request #15371 from grafana/react-panels-request-id-fix

Fixed issue with gauge requests being cancelled
parents e38cfc1a fc91e1cf
...@@ -28,7 +28,7 @@ interface RenderProps { ...@@ -28,7 +28,7 @@ interface RenderProps {
export interface Props { export interface Props {
datasource: string | null; datasource: string | null;
queries: any[]; queries: any[];
panelId?: number; panelId: number;
dashboardId?: number; dashboardId?: number;
isVisible?: boolean; isVisible?: boolean;
timeRange?: TimeRange; timeRange?: TimeRange;
...@@ -50,7 +50,6 @@ export interface State { ...@@ -50,7 +50,6 @@ export interface State {
export class DataPanel extends Component<Props, State> { export class DataPanel extends Component<Props, State> {
static defaultProps = { static defaultProps = {
isVisible: true, isVisible: true,
panelId: 1,
dashboardId: 1, dashboardId: 1,
}; };
......
...@@ -149,6 +149,7 @@ export class PanelChrome extends PureComponent<Props, State> { ...@@ -149,6 +149,7 @@ export class PanelChrome extends PureComponent<Props, State> {
this.renderPanel(false, panel.snapshotData, width, height) this.renderPanel(false, panel.snapshotData, width, height)
) : ( ) : (
<DataPanel <DataPanel
panelId={panel.id}
datasource={datasource} datasource={datasource}
queries={targets} queries={targets}
timeRange={timeRange} timeRange={timeRange}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment