@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.
package/dist/index.js CHANGED
@@ -8915,20 +8915,12 @@ var UserList = function UserList(_ref2) {
8915
8915
  var _SelectedUsersNotApprover = [].concat(selectedUsersNotApprover);
8916
8916
  var _SelectedUsersApprover = [].concat(selectedUsersApprover);
8917
8917
  var _selected = Object.values(selected).flat();
8918
- var uniqueArray1 = [].concat(new Set(_SelectedUsersNotApprover.map(function (item) {
8919
- return item.id;
8920
- }))).map(function (id) {
8921
- return _SelectedUsersNotApprover.find(function (a) {
8922
- return a.id === id;
8923
- });
8924
- });
8925
- var uniqueArray2 = [].concat(new Set(_SelectedUsersApprover.map(function (item) {
8926
- return item.id;
8927
- }))).map(function (id) {
8928
- return _SelectedUsersApprover.find(function (a) {
8929
- return a.id === id;
8930
- });
8931
- });
8918
+ var uniqueArray1 = [].concat(new Map(_SelectedUsersNotApprover.map(function (item) {
8919
+ return [item.id, item];
8920
+ })).values());
8921
+ var uniqueArray2 = [].concat(new Map(_SelectedUsersApprover.map(function (item) {
8922
+ return [item.id, item];
8923
+ })).values());
8932
8924
  console.log('uniqueArray1', uniqueArray1);
8933
8925
  console.log('uniqueArray2', uniqueArray2);
8934
8926
  _SelectedUsersNotApprover = uniqueArray1.filter(function (item) {