|
|
@ -114,8 +114,9 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) { |
|
|
|
console.warn(`Can't update queries if there is no dashboard or datasources`); |
|
|
|
console.warn(`Can't update queries if there is no dashboard or datasources`); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const queries: DashboardQuery[] = []; |
|
|
|
dashboard.panels?.forEach((panel: PanelModel) => { |
|
|
|
dashboard.panels?.forEach((panel: PanelModel) => { |
|
|
|
const queries: DashboardQuery[] = []; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
if (panel.type === PANEL_ID) { |
|
|
|
if (panel.type === PANEL_ID) { |
|
|
@ -133,9 +134,8 @@ export function Panel({ width, height, timeRange, eventBus, timeZone }: Props) { |
|
|
|
} |
|
|
|
} |
|
|
|
queries.push({ selected: false, target, panel, datasource }); |
|
|
|
queries.push({ selected: false, target, panel, datasource }); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
setQueries(queries); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
setQueries(queries); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function fetchTasks(): void { |
|
|
|
function fetchTasks(): void { |
|
|
|