Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Jul 26, 2023
1 parent ed5d866 commit 0454d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/convertToChartData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async function appendMissingDataSections(
r.json(),
);
let body = res.body ? JSON.parse(res.body) : [];
res = body ? body.documentedData?.data ?? body.data : [];
res = body && body.length != 0 ? body.documentedData?.data ?? body.data : [];

incompleteSections.map((i: IncompleteSection) => {
const sectionRes: any = res.find((s: ApiChartData) => s.label == i.key);
Expand Down

0 comments on commit 0454d23

Please sign in to comment.