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

This commit is contained in:
Leon Sorokin
2021-01-07 11:54:22 -06:00
committed by GitHub
parent 5560be73bf
commit dba4942edf

View File

@ -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 = [