diff --git a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx index 1289ad3bac7..a7638e82a23 100644 --- a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx +++ b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx @@ -51,7 +51,7 @@ export class QueryEditorRow extends PureComponent { target: query, panel: panel, refresh: () => panel.refresh(), - render: () => panel.render, + render: () => panel.render(), events: panel.events, }; } diff --git a/public/app/features/explore/QueryEditor.tsx b/public/app/features/explore/QueryEditor.tsx index 3414d93a8ad..7bca9cab99b 100644 --- a/public/app/features/explore/QueryEditor.tsx +++ b/public/app/features/explore/QueryEditor.tsx @@ -3,7 +3,6 @@ import React, { PureComponent } from 'react'; // Services import { getAngularLoader, AngularComponent } from 'app/core/services/AngularLoader'; -import { getIntervals } from 'app/core/utils/explore'; import { getTimeSrv } from 'app/features/dashboard/time_srv'; // Types @@ -37,8 +36,9 @@ export default class QueryEditor extends PureComponent { const template = ' '; const target = { datasource: datasource.name, ...initialQuery }; const scopeProps = { - target, ctrl: { + datasource, + target, refresh: () => { this.props.onQueryChange(target, false); this.props.onExecuteQuery(); @@ -48,11 +48,7 @@ export default class QueryEditor extends PureComponent { datasource, targets: [target], }, - dashboard: { - getNextQueryLetter: x => '', - }, - hideEditorRowActions: true, - ...getIntervals(range, (datasource || {}).interval, null), // Possible to get resolution? + dashboard: {}, }, };