Skip to content

Commit f4c990d

Browse files
authored
Merge pull request #32 from netdata/fix/grafana-min-version
fix: minimal grafana version
2 parents 976dcae + 25160a0 commit f4c990d

File tree

6 files changed

+2
-9
lines changed

6 files changed

+2
-9
lines changed

src/datasource.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
7878

7979
return frame;
8080
})
81-
.catch((error) => {
82-
console.log('ERROR (useGetChartData): ', error);
81+
.catch(() => {
8382
return [];
8483
});
8584
}

src/plugin.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
}
5252
],
5353
"dependencies": {
54-
"grafanaDependency": ">=7.1.0",
55-
"grafanaVersion": "7.1.x",
56-
"plugins": []
54+
"grafanaDependency": ">=10.0.0"
5755
}
5856
}

src/shared/hooks/useFetchContexts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const useFetchContexts = (baseUrl: string) => {
3838
setContexts(result.map((c) => ({ label: c, value: c })));
3939
} catch (error) {
4040
setIsError(true);
41-
console.log('ERROR (useFetchContexts): ', error);
4241
}
4342
},
4443
[baseUrl]

src/shared/hooks/useFetchNodes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const useFetchNodes = (baseUrl: string) => {
3737
const result = await getNodes(spaceId, roomId, baseUrl);
3838
setNodes(result);
3939
} catch (error) {
40-
console.log('ERROR (useFetchNodes): ', error);
4140
setIsError(true);
4241
}
4342
},

src/shared/hooks/useFetchRooms.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const useFetchRooms = (baseUrl: string) => {
1919
const result = await getRooms(spaceId, baseUrl);
2020
setRooms(result?.map((r: any) => ({ label: r.name, value: r.id })));
2121
} catch (error) {
22-
console.log('ERROR (useFetchRooms): ', error);
2322
setIsError(true);
2423
}
2524
},

src/shared/hooks/useFetchSpaces.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const useFetchSpaces = (baseUrl: string) => {
2727

2828
fetchData();
2929
} catch (error) {
30-
console.log('ERROR (useFetchSpaces): ', error);
3130
setIsError(true);
3231
}
3332
}, [baseUrl]);

0 commit comments

Comments
 (0)