SharedQuery: Fixed issue when using rows (#19610)

(cherry picked from commit 7c2ed5c1fc)
This commit is contained in:
Torkel Ödegaard
2019-10-08 02:10:35 -07:00
committed by Hugo Häggmark
parent d94eaea64e
commit d17fb21ecc
@@ -146,8 +146,12 @@ export class DashboardQueryEditor extends PureComponent<Props, State> {
const panels: Array<SelectableValue<number>> = [];
for (const panel of dashboard.panels) {
const plugin = config.panels[panel.type];
if (!plugin) {
continue;
}
if (panel.targets && panel.datasource !== SHARED_DASHBODARD_QUERY) {
const plugin = config.panels[panel.type];
const item = {
value: panel.id,
label: panel.title ? panel.title : 'Panel ' + panel.id,