From 60fb1832be623b5475b8980d674b7a4b4c8c0857 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 24 Apr 2024 09:35:20 -0400 Subject: [PATCH] [8.14] [Embeddable rebuild] ML anomaly swim lane embeddable: ensure dashboard reset works correctly (#181346) (#181490) # Backport This will backport the following commits from `main` to `8.14`: - [[Embeddable rebuild] ML anomaly swim lane embeddable: ensure dashboard reset works correctly (#181346)](https://github.com/elastic/kibana/pull/181346) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Melissa Alvarez --- .../anomaly_swimlane/initialize_swim_lane_controls.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/ml/public/embeddables/anomaly_swimlane/initialize_swim_lane_controls.ts b/x-pack/plugins/ml/public/embeddables/anomaly_swimlane/initialize_swim_lane_controls.ts index 218b937b25277..1301b29f80661 100644 --- a/x-pack/plugins/ml/public/embeddables/anomaly_swimlane/initialize_swim_lane_controls.ts +++ b/x-pack/plugins/ml/public/embeddables/anomaly_swimlane/initialize_swim_lane_controls.ts @@ -60,10 +60,10 @@ export const initializeSwimLaneControls = ( }; const swimLaneComparators: StateComparators = { - jobIds: [jobIds, jobIds.next, fastIsEqual], - swimlaneType: [swimlaneType, swimlaneType.next], - viewBy: [viewBy, viewBy.next], - perPage: [perPage, perPage.next], + jobIds: [jobIds, (arg) => jobIds.next(arg), fastIsEqual], + swimlaneType: [swimlaneType, (arg) => swimlaneType.next(arg)], + viewBy: [viewBy, (arg) => viewBy.next(arg)], + perPage: [perPage, (arg) => perPage.next(arg)], }; return {