mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Reapply public dashboard granularity fix (#57129)
This commit is contained in:
parent
7f5914ff05
commit
313c88f3e1
@ -374,11 +374,10 @@ async function getDataSource(
|
||||
return datasource;
|
||||
}
|
||||
|
||||
// TODO: Retrieve datasource to pass as argument to PublicDashboardDataSource
|
||||
// const ds = await getDatasourceSrv().get(datasource, scopedVars);
|
||||
const ds = await getDatasourceSrv().get(datasource, scopedVars);
|
||||
if (publicDashboardAccessToken) {
|
||||
return new PublicDashboardDataSource(datasource);
|
||||
return new PublicDashboardDataSource(ds);
|
||||
}
|
||||
|
||||
return await getDatasourceSrv().get(datasource, scopedVars);
|
||||
return ds;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user