Commit 40b73a1f by Torkel Ödegaard

Removed unused props & state in PromQueryField

parent e8e1d353
...@@ -91,7 +91,6 @@ interface PromQueryFieldProps { ...@@ -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 { ...@@ -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 ...@@ -124,7 +122,6 @@ class PromQueryField extends React.PureComponent<PromQueryFieldProps, PromQueryF
]; ];
this.state = { this.state = {
metricsByPrefix: [],
metricsOptions: [], metricsOptions: [],
syntaxLoaded: false, syntaxLoaded: false,
}; };
......
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