@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.
- package/CHANGELOG.md +10 -0
- package/dist/react-gmi.esm.js +2 -11
- package/dist/react-gmi.esm.js.map +1 -1
- package/dist/react-gmi.js +2 -11
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +2 -11
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/react-gmi.umd.js +2 -11
- package/dist/react-gmi.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/react-gmi.modern.js
CHANGED
|
@@ -576,14 +576,6 @@ function useConfig(cfg) {
|
|
|
576
576
|
return calculated;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
const getId = item => {
|
|
580
|
-
if (item['@id']) {
|
|
581
|
-
return item['@id'];
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
return item['@absolute_url'];
|
|
585
|
-
};
|
|
586
|
-
|
|
587
579
|
function RemoveItems(props) {
|
|
588
580
|
const Ctx = useTraversal();
|
|
589
581
|
const cfg = useConfig();
|
|
@@ -598,8 +590,7 @@ function RemoveItems(props) {
|
|
|
598
590
|
let errors = [];
|
|
599
591
|
setLoading(true);
|
|
600
592
|
const actions = items.map(async item => {
|
|
601
|
-
|
|
602
|
-
const res = await Ctx.client.delete(getId(item));
|
|
593
|
+
const res = await Ctx.client.delete(`${Ctx.path}${item['@name']}`);
|
|
603
594
|
|
|
604
595
|
if (!res.ok) {
|
|
605
596
|
const err = await res.json();
|
|
@@ -4026,7 +4017,7 @@ function AddPermission({
|
|
|
4026
4017
|
value: group.id
|
|
4027
4018
|
}));
|
|
4028
4019
|
const users = principalsData.users.map(user => ({
|
|
4029
|
-
text: user.fullname,
|
|
4020
|
+
text: user.fullname || user.id,
|
|
4030
4021
|
value: user.id
|
|
4031
4022
|
}));
|
|
4032
4023
|
principals = [...groups, ...users];
|