Skip to content

Commit

Permalink
[ML] Fix histogram to table row assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Jul 28, 2022
1 parent 1d2013e commit ede00b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/aiops/common/api/stream_reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ede00b0

Please sign in to comment.