mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: When loki is default data source, datasource is passed as undefined to QueryOptions #14667
This commit is contained in:
parent
8e8b759b21
commit
bf478a40b1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user