mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
db9f80a7a3
commit
5a65a12278
@ -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,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user