Time series panel: Fix an issue with stacks being not complete due to the incorrect data frame length (#51910) (#51914)

* Test failure

* Fix

(cherry picked from commit 5a65a12278)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-07-07 07:45:09 -07:00
committed by GitHub
co-authored by Dominik Prokop
parent 11b8cefe09
commit aa247f5833
2 changed files with 4 additions and 0 deletions
@@ -100,6 +100,8 @@ describe('prepare timeseries graph', () => {
3,
]
`);
expect(frames![0].length).toEqual(6);
});
it('will insert and convert nulls to a configure "no value" value', () => {
@@ -122,5 +124,6 @@ describe('prepare timeseries graph', () => {
3,
]
`);
expect(frames![0].length).toEqual(6);
});
});
@@ -104,6 +104,7 @@ export function prepareGraphableFields(
if (hasTimeField && hasValueField) {
frames.push({
...frame,
length: nulledFrame.length,
fields,
});
}