Skip to content

Commit

Permalink
user-picker [fix] check that user is defined for homonyms
Browse files Browse the repository at this point in the history
  • Loading branch information
pierop committed Oct 11, 2016
1 parent a0580cf commit 1ab9f5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/directives/lucca/user-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,9 @@
// Add each property to the user
_.each(props, function(prop) {
var newProp = prop.name.split('.')[0];
user[newProp] = userWithProps[newProp];
if (!!userWithProps && !!userWithProps[newProp]) {
user[newProp] = userWithProps[newProp];
}
});
});

Expand Down

0 comments on commit 1ab9f5f

Please sign in to comment.