From c2b0b127f4f8eb9f95284b466aa8bf927b778fa4 Mon Sep 17 00:00:00 2001 From: Harry Nguyen Date: Mon, 19 Dec 2016 12:34:26 +1100 Subject: [PATCH] Update: no more sorting in TreePicker --- src/helpers/TreePickerHelpers.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/helpers/TreePickerHelpers.js b/src/helpers/TreePickerHelpers.js index 60102f3e1..f9fbe8a70 100644 --- a/src/helpers/TreePickerHelpers.js +++ b/src/helpers/TreePickerHelpers.js @@ -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 })); };