Mix backend and frontend queries from one panel

This commit is contained in:
Alexander Zobnin
2021-06-01 20:47:16 +03:00
parent 16fe4795b3
commit c546f2143d
3 changed files with 47 additions and 70 deletions

View File

@@ -76,7 +76,7 @@ export class ZabbixAPIConnector {
requestOptions.headers.Authorization = this.requestOptions.basicAuth;
}
const response = await getBackendSrv().datasourceRequest(requestOptions);
const response = await getBackendSrv().fetch<any>(requestOptions).toPromise();
return response?.data?.result;
}