mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 00:25:58 +08:00
fix: add null check for allDataPoints in chart data processing
This commit is contained in:
parent
229922a529
commit
aaabd0f904
@ -30,6 +30,7 @@ export const getChartData = (
|
||||
};
|
||||
const chartLabels: ChartData<'line'>['labels'] = [];
|
||||
|
||||
if (allDataPoints)
|
||||
Object.keys(allDataPoints).forEach((timestamp) => {
|
||||
const key = allDataPoints[timestamp];
|
||||
if (key.value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user