Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {

return frame;
})
.catch((error) => {
console.log('ERROR (useGetChartData): ', error);
.catch(() => {
return [];
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
}
],
"dependencies": {
"grafanaDependency": ">=7.1.0",
"grafanaVersion": "7.1.x",
"plugins": []
"grafanaDependency": ">=10.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
}
1 change: 0 additions & 1 deletion src/shared/hooks/useFetchContexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export const useFetchContexts = (baseUrl: string) => {
setContexts(result.map((c) => ({ label: c, value: c })));
} catch (error) {
setIsError(true);
console.log('ERROR (useFetchContexts): ', error);
}
},
[baseUrl]
Expand Down
1 change: 0 additions & 1 deletion src/shared/hooks/useFetchNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export const useFetchNodes = (baseUrl: string) => {
const result = await getNodes(spaceId, roomId, baseUrl);
setNodes(result);
} catch (error) {
console.log('ERROR (useFetchNodes): ', error);
setIsError(true);
}
},
Expand Down
1 change: 0 additions & 1 deletion src/shared/hooks/useFetchRooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const useFetchRooms = (baseUrl: string) => {
const result = await getRooms(spaceId, baseUrl);
setRooms(result?.map((r: any) => ({ label: r.name, value: r.id })));
} catch (error) {
console.log('ERROR (useFetchRooms): ', error);
setIsError(true);
}
},
Expand Down
1 change: 0 additions & 1 deletion src/shared/hooks/useFetchSpaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const useFetchSpaces = (baseUrl: string) => {

fetchData();
} catch (error) {
console.log('ERROR (useFetchSpaces): ', error);
setIsError(true);
}
}, [baseUrl]);
Expand Down
Loading