GraphNG: fix spanGaps optimization in alignDataFrames(). see #30101. (#30118)

pull/29993/head^2
Leon Sorokin 4 years ago committed by GitHub
parent 5560be73bf
commit dba4942edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/grafana-ui/src/components/GraphNG/utils.ts

@ -69,12 +69,11 @@ export function alignDataFrames(frames: DataFrame[], fields?: XYFieldMatchers):
throw new Error('Only a single x field is supported');
}
let nullModesFrame: JoinNullMode[] = [];
let nullModesFrame: JoinNullMode[] = [0];
// Add the first X axis
if (!sourceFields.length) {
sourceFields.push(dims.x[0]);
nullModesFrame.push(0);
}
const alignedData: AlignedData = [

Loading…
Cancel
Save