@strapi/plugin-users-permissions 5.5.0 → 5.5.1
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/admin/src/components/Permissions/PermissionRow/SubCategory.jsx +1 -1
- package/admin/src/pages/EmailTemplates/components/EmailTable.jsx +2 -2
- package/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx +1 -1
- package/dist/_chunks/{index-6xS_NVnz.js → index-C3iYythL.js} +9 -11
- package/dist/_chunks/{index-6xS_NVnz.js.map → index-C3iYythL.js.map} +1 -1
- package/dist/_chunks/{index-BLaxSWbC.mjs → index-CKD-Sp9s.mjs} +3 -3
- package/dist/_chunks/{index-BLaxSWbC.mjs.map → index-CKD-Sp9s.mjs.map} +1 -1
- package/dist/_chunks/{index-7urCw5UD.js → index-CLDK4fmy.js} +2 -2
- package/dist/_chunks/{index-7urCw5UD.js.map → index-CLDK4fmy.js.map} +1 -1
- package/dist/_chunks/{index-BReXSOfU.mjs → index-CsqdN7DN.mjs} +4 -4
- package/dist/_chunks/index-CsqdN7DN.mjs.map +1 -0
- package/dist/_chunks/{index-CzxZzlFc.js → index-CuvIhX1e.js} +7 -7
- package/dist/_chunks/{index-CzxZzlFc.js.map → index-CuvIhX1e.js.map} +1 -1
- package/dist/_chunks/{index-Dz5Q1Yft.js → index-D0wS054s.js} +4 -4
- package/dist/_chunks/index-D0wS054s.js.map +1 -0
- package/dist/_chunks/{index-BYBVysRS.mjs → index-DO8lvE2K.mjs} +5 -5
- package/dist/_chunks/index-DO8lvE2K.mjs.map +1 -0
- package/dist/_chunks/{index-CCAQw4t9.js → index-LdWx-SAe.js} +6 -6
- package/dist/_chunks/index-LdWx-SAe.js.map +1 -0
- package/dist/_chunks/{index-AVbfDpH6.mjs → index-O1ma7Zwx.mjs} +2 -2
- package/dist/_chunks/{index-AVbfDpH6.mjs.map → index-O1ma7Zwx.mjs.map} +1 -1
- package/dist/_chunks/{index-UBwCyQ_3-lG3F5mWr.js → index-UvlzzkEs-Be9Y8EXt.js} +4 -2
- package/dist/_chunks/index-UvlzzkEs-Be9Y8EXt.js.map +1 -0
- package/dist/_chunks/{index-UBwCyQ_3-AADEvpEo.mjs → index-UvlzzkEs-CkJgvpmE.mjs} +4 -2
- package/dist/_chunks/index-UvlzzkEs-CkJgvpmE.mjs.map +1 -0
- package/dist/_chunks/{index-CvQ-xY7a.mjs → index-uRurQtZZ.mjs} +9 -11
- package/dist/_chunks/{index-CvQ-xY7a.mjs.map → index-uRurQtZZ.mjs.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +4 -5
- package/dist/_chunks/index-BReXSOfU.mjs.map +0 -1
- package/dist/_chunks/index-BYBVysRS.mjs.map +0 -1
- package/dist/_chunks/index-CCAQw4t9.js.map +0 -1
- package/dist/_chunks/index-Dz5Q1Yft.js.map +0 -1
- package/dist/_chunks/index-UBwCyQ_3-AADEvpEo.mjs.map +0 -1
- package/dist/_chunks/index-UBwCyQ_3-lG3F5mWr.js.map +0 -1
|
@@ -10,6 +10,7 @@ import { useCallback, useMemo, useDebugValue, useState, useEffect, useRef, useLa
|
|
|
10
10
|
import { useIntl } from "react-intl";
|
|
11
11
|
import { ArrowLeft, Eye, EyeStriked, WarningCircle, Filter, CaretDown } from "@strapi/icons";
|
|
12
12
|
import "@strapi/icons/symbols";
|
|
13
|
+
import "lodash/trimEnd";
|
|
13
14
|
import createNextState2, { enableES5, isDraftable, isDraft, enablePatches, applyPatches, produceWithPatches, original, produce } from "immer";
|
|
14
15
|
import { shallowEqual, batch, useDispatch, useSelector, useStore } from "react-redux";
|
|
15
16
|
import pipe from "lodash/fp/pipe";
|
|
@@ -10328,6 +10329,7 @@ React.forwardRef(
|
|
|
10328
10329
|
const canGoBack = useHistory("BackButton", (state) => state.canGoBack);
|
|
10329
10330
|
const goBack = useHistory("BackButton", (state) => state.goBack);
|
|
10330
10331
|
const history = useHistory("BackButton", (state) => state.history);
|
|
10332
|
+
const currentLocationIndex = useHistory("BackButton", (state) => state.currentLocationIndex);
|
|
10331
10333
|
const hasFallback = fallback !== "";
|
|
10332
10334
|
const shouldBeDisabled = disabled || !canGoBack && !hasFallback;
|
|
10333
10335
|
const handleClick = (e) => {
|
|
@@ -10338,7 +10340,7 @@ React.forwardRef(
|
|
|
10338
10340
|
navigate(fallback);
|
|
10339
10341
|
}
|
|
10340
10342
|
};
|
|
10341
|
-
const historyTo = canGoBack ? history.at(-
|
|
10343
|
+
const historyTo = canGoBack ? history.at(currentLocationIndex - 2) : void 0;
|
|
10342
10344
|
const toWithFallback = historyTo ?? fallback;
|
|
10343
10345
|
return /* @__PURE__ */ jsx(
|
|
10344
10346
|
Link,
|
|
@@ -11878,4 +11880,4 @@ export {
|
|
|
11878
11880
|
Layouts as L,
|
|
11879
11881
|
useTracking as u
|
|
11880
11882
|
};
|
|
11881
|
-
//# sourceMappingURL=index-
|
|
11883
|
+
//# sourceMappingURL=index-UvlzzkEs-CkJgvpmE.mjs.map
|