diff --git a/public/app/features/dashboard/panel_editor/EditorTabBody.tsx b/public/app/features/dashboard/panel_editor/EditorTabBody.tsx index 3183f7a7b24..0413cae8a7b 100644 --- a/public/app/features/dashboard/panel_editor/EditorTabBody.tsx +++ b/public/app/features/dashboard/panel_editor/EditorTabBody.tsx @@ -36,7 +36,7 @@ export class EditorTabBody extends PureComponent { toolbarItems: [], }; - constructor(props: Props) { + constructor(props) { super(props); this.state = { diff --git a/public/app/features/dashboard/panel_editor/VisualizationTab.tsx b/public/app/features/dashboard/panel_editor/VisualizationTab.tsx index efb1caf0cf7..37f109250a7 100644 --- a/public/app/features/dashboard/panel_editor/VisualizationTab.tsx +++ b/public/app/features/dashboard/panel_editor/VisualizationTab.tsx @@ -1,5 +1,5 @@ // Libraries -import React, { PureComponent, ChangeEvent } from 'react'; +import React, { PureComponent } from 'react'; // Utils & Services import { AngularComponent, getAngularLoader } from 'app/core/services/AngularLoader'; @@ -31,7 +31,6 @@ interface Props { interface State { isVizPickerOpen: boolean; searchQuery: string; - searchResults: PanelPlugin[]; scrollTop: number; } @@ -40,13 +39,12 @@ export class VisualizationTab extends PureComponent { angularOptions: AngularComponent; searchInput: HTMLElement; - constructor(props: Props) { + constructor(props) { super(props); this.state = { isVizPickerOpen: this.props.urlOpenVizPicker, searchQuery: '', - searchResults: [], scrollTop: 0, }; } @@ -172,7 +170,7 @@ export class VisualizationTab extends PureComponent { this.setState({ isVizPickerOpen: false }); }; - onSearchQueryChange = (evt: ChangeEvent) => { + onSearchQueryChange = evt => { const value = evt.target.value; this.setState({ searchQuery: value, @@ -189,7 +187,7 @@ export class VisualizationTab extends PureComponent {