mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Removed unused props & state in PromQueryField
This commit is contained in:
parent
e8e1d35340
commit
40b73a1fcd
@ -91,7 +91,6 @@ interface PromQueryFieldProps {
|
|||||||
initialQuery: PromQuery;
|
initialQuery: PromQuery;
|
||||||
hint?: any;
|
hint?: any;
|
||||||
history?: any[];
|
history?: any[];
|
||||||
metricsByPrefix?: CascaderOption[];
|
|
||||||
onClickHintFix?: (action: any) => void;
|
onClickHintFix?: (action: any) => void;
|
||||||
onPressEnter?: () => void;
|
onPressEnter?: () => void;
|
||||||
onQueryChange?: (value: PromQuery, override?: boolean) => void;
|
onQueryChange?: (value: PromQuery, override?: boolean) => void;
|
||||||
@ -99,7 +98,6 @@ interface PromQueryFieldProps {
|
|||||||
|
|
||||||
interface PromQueryFieldState {
|
interface PromQueryFieldState {
|
||||||
metricsOptions: any[];
|
metricsOptions: any[];
|
||||||
metricsByPrefix: CascaderOption[];
|
|
||||||
syntaxLoaded: boolean;
|
syntaxLoaded: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +122,6 @@ class PromQueryField extends React.PureComponent<PromQueryFieldProps, PromQueryF
|
|||||||
];
|
];
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
metricsByPrefix: [],
|
|
||||||
metricsOptions: [],
|
metricsOptions: [],
|
||||||
syntaxLoaded: false,
|
syntaxLoaded: false,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user