Skip to content

Commit

Permalink
Update: no more sorting in TreePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
sonhanguyen authored and unknown committed Dec 19, 2016
1 parent 60ad834 commit c2b0b12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/helpers/TreePickerHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ import _ from 'lodash';
exports.removeSelected = ({ subtree, selectedNodes }) => {
if (!subtree) return subtree;

return _(subtree)
.reject(({ id }) => _.some(selectedNodes, { id }))
.sortBy('label')
.value();
return _.reject(subtree, ({ id }) => _.some(selectedNodes, { id }));
};

0 comments on commit c2b0b12

Please sign in to comment.