include URL arguments in dashboard resource request (#36526)

* include URL arguments in dashboard resource request
This commit is contained in:
Kevin Minehart 2021-07-07 14:42:49 -05:00 committed by GitHub
parent a67eaf6b62
commit ec45afa6b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,8 +111,14 @@ export class DashboardLoaderSrv {
return Promise.reject('expecting path parameter');
}
const queryParams: { [key: string]: any } = {};
params.forEach((value, key) => {
queryParams[key] = value;
});
return getBackendSrv()
.get(`/api/datasources/${ds.id}/resources/${path}`, {})
.get(`/api/datasources/${ds.id}/resources/${path}`, queryParams)
.then((data) => {
return {
meta: {