diff --git a/utils/convertToChartData.ts b/utils/convertToChartData.ts index 2c22291..25943ef 100644 --- a/utils/convertToChartData.ts +++ b/utils/convertToChartData.ts @@ -119,7 +119,7 @@ async function appendMissingDataSections( } catch {} let body = res.body ? JSON.parse(res.body) : []; res = - body && body.documentedData.data.length + body && body.documentedData?.data.length ? body.documentedData?.data ?? body.data : [];