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

* Test failure

* Fix
This commit is contained in:
Dominik Prokop 2022-07-07 16:25:52 +02:00 committed by GitHub
parent db9f80a7a3
commit 5a65a12278
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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);
});
});

View File

@ -104,6 +104,7 @@ export function prepareGraphableFields(
if (hasTimeField && hasValueField) {
frames.push({
...frame,
length: nulledFrame.length,
fields,
});
}