@itilite/iui-user-management 0.4.212 → 0.4.213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8912,20 +8912,12 @@ var UserList = function UserList(_ref2) {
8912
8912
  var _SelectedUsersNotApprover = [].concat(selectedUsersNotApprover);
8913
8913
  var _SelectedUsersApprover = [].concat(selectedUsersApprover);
8914
8914
  var _selected = Object.values(selected).flat();
8915
- var uniqueArray1 = [].concat(new Set(_SelectedUsersNotApprover.map(function (item) {
8916
- return item.id;
8917
- }))).map(function (id) {
8918
- return _SelectedUsersNotApprover.find(function (a) {
8919
- return a.id === id;
8920
- });
8921
- });
8922
- var uniqueArray2 = [].concat(new Set(_SelectedUsersApprover.map(function (item) {
8923
- return item.id;
8924
- }))).map(function (id) {
8925
- return _SelectedUsersApprover.find(function (a) {
8926
- return a.id === id;
8927
- });
8928
- });
8915
+ var uniqueArray1 = [].concat(new Map(_SelectedUsersNotApprover.map(function (item) {
8916
+ return [item.id, item];
8917
+ })).values());
8918
+ var uniqueArray2 = [].concat(new Map(_SelectedUsersApprover.map(function (item) {
8919
+ return [item.id, item];
8920
+ })).values());
8929
8921
  console.log('uniqueArray1', uniqueArray1);
8930
8922
  console.log('uniqueArray2', uniqueArray2);
8931
8923
  _SelectedUsersNotApprover = uniqueArray1.filter(function (item) {