Skip to content

Commit 8edb24d

Browse files
committed
[ML] Fix restoring custom view-by selection when one more than one job is selected.
1 parent f01a4b5 commit 8edb24d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

x-pack/legacy/plugins/ml/public/application/explorer/reducers/explorer_reducer/job_selection_change.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { VIEW_BY_JOB_LABEL } from '../../explorer_constants';
87
import { ActionPayload } from '../../explorer_dashboard_service';
98
import { getDefaultSwimlaneData, getInfluencers } from '../../explorer_utils';
109

@@ -38,11 +37,6 @@ export const jobSelectionChange = (state: ExplorerState, payload: ActionPayload)
3837
stateUpdate.indexPattern = getIndexPattern(selectedJobs);
3938
}
4039

41-
if (selectedJobs.length > 1) {
42-
stateUpdate.viewBySwimlaneFieldName = VIEW_BY_JOB_LABEL;
43-
return stateUpdate;
44-
}
45-
4640
stateUpdate.loading = true;
4741
return stateUpdate;
4842
};

0 commit comments

Comments
 (0)