mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Reapply public dashboard granularity fix (#57129)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user