Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Oct 30, 2024
1 parent b4c241c commit 59edb0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,13 @@ export function mlApiProvider(httpService: HttpService) {
})
).then((responses) => {
// Merge responses
return responses.reduce(
return responses.reduce<estypes.MlGetOverallBucketsResponse>(
(acc, response) => {
acc.count += response.count;
acc.overall_buckets.push(...response.overall_buckets);
return acc;
},
{ count: 0, overall_buckets: [] } as estypes.MlGetOverallBucketsResponse
{ count: 0, overall_buckets: [] }
);
});
},
Expand Down

0 comments on commit 59edb0f

Please sign in to comment.