@antscorp/antsomi-ui 1.3.5-beta.924 → 1.3.5-beta.925

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.
@@ -101,7 +101,9 @@ export const usePermission = () => {
101
101
  auth: {
102
102
  token: auth?.token,
103
103
  url: permissionDomain || PERMISSION_API,
104
- userId: auth?.userId,
104
+ // NOTE: Hot fix for case menu permission working wrong
105
+ // userId: auth?.userId,
106
+ userId: auth?.accountId,
105
107
  accountId: auth?.accountId,
106
108
  },
107
109
  params: {
@@ -199,7 +199,8 @@ export const Layout = memo(props => {
199
199
  permissionDomain,
200
200
  socketDomain: SOCKET_API,
201
201
  token,
202
- accountId: userId,
202
+ // accountId: userId,
203
+ accountId,
203
204
  userId,
204
205
  lang: languageCode,
205
206
  networkId: portalId,
@@ -223,6 +224,12 @@ export const Layout = memo(props => {
223
224
  : menu_item_name);
224
225
  setActiveMenu(activeMenuItem);
225
226
  onActiveMenuChange?.(menu_item_code);
227
+ console.log({
228
+ activeItemPath: cloneDeep(activeItemPath),
229
+ flattenPermissionList,
230
+ menuListPermission,
231
+ appItem: activeItemPath[0],
232
+ });
226
233
  const hasRole = hasSelectAccountPermission({
227
234
  activeItemPath: cloneDeep(activeItemPath),
228
235
  flattenPermissionList,
@@ -43,7 +43,9 @@ export const OldLeftMenu = memo(props => {
43
43
  auth: {
44
44
  token: auth?.token,
45
45
  url: PERMISSION_API,
46
- userId: auth?.userId,
46
+ // NOTE: Hot fix for case menu permission working wrong
47
+ // userId: auth?.userId,
48
+ userId: auth?.accountId,
47
49
  accountId: auth?.accountId,
48
50
  },
49
51
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.924",
3
+ "version": "1.3.5-beta.925",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",