[ML] Fixing duplicate influencers when cloning a job via a wizard (#23484) (#23495)

This commit is contained in:
James Gowdy 2018-09-26 09:42:22 +01:00 committed by GitHub
parent 889e19e9d1
commit 9f42042aec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});
}