diff --git a/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts b/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts index e7379c6ffdb19..a59b46887b5ff 100644 --- a/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts +++ b/x-pack/plugins/aiops/server/routes/log_rate_analysis/analysis_handlers/top_items_handler.ts @@ -185,7 +185,7 @@ export const topItemsHandlerFactory = } else if (isTextFieldCandidates(payload)) { const { textFieldCandidates: fieldNames } = payload; - const topCategoriesForField = await await fetchTopCategories({ + const topCategoriesForField = await fetchTopCategories({ esClient, logger, emitError: responseStream.pushError,