Explore: Fixes error when switching from prometheus to loki data sources (#18599)

Closes #18594
Closes #18596

(cherry picked from commit bf82e6cded)
This commit is contained in:
kay delaney
2019-09-23 11:14:34 +03:00
committed by Sofia Papagiannaki
parent 67bad726f1
commit dc6219d8e0
+1 -1
View File
@@ -115,7 +115,7 @@ export class QueryField extends React.PureComponent<QueryFieldProps, QueryFieldS
if (initialQuery !== prevProps.initialQuery) {
// and we have a version that differs
if (initialQuery !== Plain.serialize(value)) {
this.setState({ value: makeValue(initialQuery, syntax) });
this.setState({ value: makeValue(initialQuery || '', syntax) });
}
}