More types and some refactoring

This commit is contained in:
Hugo Häggmark
2019-02-01 12:54:16 +01:00
parent acea1d7f00
commit 2d0fd96621
8 changed files with 29 additions and 26 deletions

View File

@@ -183,10 +183,10 @@ class PromQueryField extends React.PureComponent<PromQueryFieldProps, PromQueryF
};
onClickHintFix = () => {
// const { hint, onClickHintFix } = this.props;
// if (onClickHintFix && hint && hint.fix) {
// onClickHintFix(hint.fix.action);
// }
const { hint, onExecuteHint } = this.props;
if (onExecuteHint && hint && hint.fix) {
onExecuteHint(hint.fix.action);
}
};
onUpdateLanguage = () => {