Commit b2932058 by Erik Sundell

stackdriver: only add unit to resonse obj if it has a value

parent 0f0763b6
......@@ -109,12 +109,11 @@ export default class StackdriverDatasource {
const unit = this.resolvePanelUnitFromTargets(options.targets);
queryRes.series.forEach(series => {
let timeSerie = {
let timeSerie: any = {
target: series.name,
datapoints: series.points,
refId: queryRes.refId,
meta: queryRes.meta,
unit,
};
if (unit) {
timeSerie = { ...timeSerie, unit };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment