mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Automatically infer types for dashgrid connected components (#29818)
* Refactor DashboardPanel * Refactor PanelEditor * Fix missing initializer * Update public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx Co-authored-by: Torkel Ödegaard <torkel@grafana.org> * Simplify type * Remove unused type * Move prop connectors on top Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Libaries
|
||||
// Libraries
|
||||
import React, { PureComponent } from 'react';
|
||||
import { hot } from 'react-hot-loader';
|
||||
import ReactGridLayout, { ItemCallback } from 'react-grid-layout';
|
||||
@@ -102,7 +102,7 @@ export interface Props {
|
||||
}
|
||||
|
||||
export class DashboardGrid extends PureComponent<Props> {
|
||||
private panelMap: { [id: string]: PanelModel };
|
||||
private panelMap: { [id: string]: PanelModel } = {};
|
||||
private panelRef: { [id: string]: HTMLElement } = {};
|
||||
private eventSubs = new Subscription();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user