Fix Explore URL generator (#60653)

This commit is contained in:
Kristina 2022-12-22 09:23:30 -06:00 committed by GitHub
parent c289cd136c
commit 58716de073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ function createExploreLink(settings: DataSourceInstanceSettings, model: AlertDat
return urlUtil.renderUrl(`${config.appSubUrl}/explore`, { return urlUtil.renderUrl(`${config.appSubUrl}/explore`, {
left: JSON.stringify({ left: JSON.stringify({
datasource: name, datasource: name,
queries: [{ refId: 'A', datasource: name, expr: queryParams }], queries: [{ refId: 'A', ...queryParams }],
range: { from: 'now-1h', to: 'now' }, range: { from: 'now-1h', to: 'now' },
}), }),
}); });