SharedQuery: Fixed issue when using rows (#19610)

pull/19692/head
Torkel Ödegaard 6 years ago committed by GitHub
parent 58badd70b0
commit 7c2ed5c1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/plugins/datasource/dashboard/DashboardQueryEditor.tsx

@ -146,8 +146,12 @@ export class DashboardQueryEditor extends PureComponent<Props, State> {
const panels: Array<SelectableValue<number>> = []; const panels: Array<SelectableValue<number>> = [];
for (const panel of dashboard.panels) { for (const panel of dashboard.panels) {
if (panel.targets && panel.datasource !== SHARED_DASHBODARD_QUERY) {
const plugin = config.panels[panel.type]; const plugin = config.panels[panel.type];
if (!plugin) {
continue;
}
if (panel.targets && panel.datasource !== SHARED_DASHBODARD_QUERY) {
const item = { const item = {
value: panel.id, value: panel.id,
label: panel.title ? panel.title : 'Panel ' + panel.id, label: panel.title ? panel.title : 'Panel ' + panel.id,

Loading…
Cancel
Save