We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bede89 commit 4dc01e9Copy full SHA for 4dc01e9
src/api.ts
@@ -19,7 +19,7 @@ export default class Api {
19
async get(params?: string) {
20
const data: Record<string, string> = {};
21
22
- this.params.forEach((key, value) => {
+ this.params.forEach((value, key) => {
23
data[key] = value;
24
});
25
@@ -78,8 +78,6 @@ export default class Api {
78
method: 'GET',
79
};
80
81
- console.log(data);
82
-
83
if (data && Object.keys(data).length > 0) {
84
req.url =
85
req.url +
@@ -89,8 +87,6 @@ export default class Api {
89
87
.join('&');
90
88
}
91
92
- console.log(req.url);
93
94
return getBackendSrv().datasourceRequest(req);
95
96
0 commit comments