Skip to content

Commit 24b81be

Browse files
committed
4.1.1
1 parent 3fe7a66 commit 24b81be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anodot-datasource",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "Anodot Grafana Datasource for anodot-panel plugin",
55
"scripts": {
66
"build": "grafana-toolkit plugin:build",

src/Anomalies/query.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function anomalyQuery(query, datasource) {
1616
dataSet: results[i]?.map((a) => ({ ...a, metricName: value })) || [],
1717
}));
1818

19-
let anomaliesCharts;
19+
let anomaliesCharts = [];
2020

2121
if (requestCharts) {
2222
const params = { baseline: includeBaseline, timeInterval };
@@ -27,6 +27,7 @@ export async function anomalyQuery(query, datasource) {
2727

2828
let fields = [{ name: 'time', type: FieldType.time }];
2929
const timeMap = {};
30+
3031
if (addQuery && anomaliesCharts.length) {
3132
anomaliesCharts.forEach(({ name, dataPoints }) => {
3233
fields.push({ name, type: FieldType.number });

0 commit comments

Comments
 (0)