Commit 6f6825c5 by Torkel Ödegaard Committed by GitHub

Merge pull request #14767 from grafana/14667-edit-panel

fix: When loki is default data source, datasource is passed as undefi…
parents 8e8b759b bf478a40
......@@ -94,7 +94,7 @@ export class QueryOptions extends PureComponent<Props, State> {
renderOptions() {
const { datasource, panel } = this.props;
const { queryOptions } = datasource.meta;
const queryOptions = datasource && datasource.meta ? datasource.meta.queryOptions : undefined;
if (!queryOptions) {
return null;
......
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