@guillotinaweb/react-gmi 0.22.2 → 0.22.4

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.
@@ -769,14 +769,6 @@
769
769
  return calculated;
770
770
  }
771
771
 
772
- var getId = function getId(item) {
773
- if (item['@id']) {
774
- return item['@id'];
775
- }
776
-
777
- return item['@absolute_url'];
778
- };
779
-
780
772
  function RemoveItems(props) {
781
773
  var removeItems = function removeItems() {
782
774
  try {
@@ -784,8 +776,7 @@
784
776
  setLoading(true);
785
777
  var actions = items.map(function (item) {
786
778
  try {
787
- console.log(item);
788
- return Promise.resolve(Ctx.client.delete(getId(item))).then(function (res) {
779
+ return Promise.resolve(Ctx.client.delete("" + Ctx.path + item['@name'])).then(function (res) {
789
780
  var _temp = function () {
790
781
  if (!res.ok) {
791
782
  return Promise.resolve(res.json()).then(function (err) {
@@ -4997,7 +4988,7 @@
4997
4988
  });
4998
4989
  var users = principalsData.users.map(function (user) {
4999
4990
  return {
5000
- text: user.fullname,
4991
+ text: user.fullname || user.id,
5001
4992
  value: user.id
5002
4993
  };
5003
4994
  });