mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 06:36:01 +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'] = [];
|
const chartLabels: ChartData<'line'>['labels'] = [];
|
||||||
|
|
||||||
|
if (allDataPoints)
|
||||||
Object.keys(allDataPoints).forEach((timestamp) => {
|
Object.keys(allDataPoints).forEach((timestamp) => {
|
||||||
const key = allDataPoints[timestamp];
|
const key = allDataPoints[timestamp];
|
||||||
if (key.value) {
|
if (key.value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user