Skip to content

Commit

Permalink
Merge pull request #475 from Adslot/treepicker-no-sorting-by-default
Browse files Browse the repository at this point in the history
Update: no more sorting in TreePicker
  • Loading branch information
omgaz authored Dec 21, 2016
2 parents 60ad834 + c2b0b12 commit 6dceee0
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 6dceee0

Please sign in to comment.