From 9f42042aecd7aff24a9b48dfa0ac03233dc1feb2 Mon Sep 17 00:00:00 2001 From: James Gowdy Date: Wed, 26 Sep 2018 09:42:22 +0100 Subject: [PATCH] [ML] Fixing duplicate influencers when cloning a job via a wizard (#23484) (#23495) --- .../influencers_selection/influencers_selection_directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/jobs/new_job/simple/components/influencers_selection/influencers_selection_directive.js b/x-pack/plugins/ml/public/jobs/new_job/simple/components/influencers_selection/influencers_selection_directive.js index 6c4747272d5df..7ebf2410de6c2 100644 --- a/x-pack/plugins/ml/public/jobs/new_job/simple/components/influencers_selection/influencers_selection_directive.js +++ b/x-pack/plugins/ml/public/jobs/new_job/simple/components/influencers_selection/influencers_selection_directive.js @@ -55,7 +55,7 @@ module.directive('mlInfluencersSelection', function () { function getNonDefaultFields(defaultFields) { return $scope.formConfig.influencerFields.filter(f => { - return (defaultFields.find(sp => sp === f) === undefined); + return (defaultFields.find(sp => sp.name === f.name) === undefined); }); }