From 59edb0f4e0754ae94d93625a7fba45c33eaf6f26 Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Wed, 30 Oct 2024 12:32:33 +0100 Subject: [PATCH] refactor --- .../ml/public/application/services/ml_api_service/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/ml/public/application/services/ml_api_service/index.ts b/x-pack/plugins/ml/public/application/services/ml_api_service/index.ts index 20e3fd1c64c36..f21e67fe450f4 100644 --- a/x-pack/plugins/ml/public/application/services/ml_api_service/index.ts +++ b/x-pack/plugins/ml/public/application/services/ml_api_service/index.ts @@ -428,13 +428,13 @@ export function mlApiProvider(httpService: HttpService) { }) ).then((responses) => { // Merge responses - return responses.reduce( + return responses.reduce( (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: [] } ); }); },