From ede00b05f34a4cb06ded00cf0c9b5a24e6b91757 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Thu, 28 Jul 2022 12:34:09 +0200 Subject: [PATCH] [ML] Fix histogram to table row assignment. --- x-pack/plugins/aiops/common/api/stream_reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/aiops/common/api/stream_reducer.ts b/x-pack/plugins/aiops/common/api/stream_reducer.ts index 5e37df418c6a..597527e80dae 100644 --- a/x-pack/plugins/aiops/common/api/stream_reducer.ts +++ b/x-pack/plugins/aiops/common/api/stream_reducer.ts @@ -37,7 +37,7 @@ export function streamReducer( case API_ACTION_NAME.ADD_CHANGE_POINTS_HISTOGRAM: const changePoints = state.changePoints.map((cp) => { const cpHistogram = action.payload.find( - (h) => h.fieldName === cp.fieldName && h.fieldValue && cp.fieldName + (h) => h.fieldName === cp.fieldName && h.fieldValue === cp.fieldValue ); if (cpHistogram) { cp.histogram = cpHistogram.histogram;