diff --git a/package.json b/package.json index 8d7dd392..7e7c2c87 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@tailwindcss/aspect-ratio": "^0.4.0", "@types/jsdom": "^16.2.14", "@types/lodash.clonedeep": "4.5.7", + "@types/lodash.isequal": "^4.5.6", "@types/node": "^17.0.45", "@types/qs": "^6.9.7", "@types/uuid": "^8.3.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 161124b4..3ec1cd1f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,6 +19,7 @@ importers: '@tailwindcss/aspect-ratio': ^0.4.0 '@types/jsdom': ^16.2.14 '@types/lodash.clonedeep': 4.5.7 + '@types/lodash.isequal': ^4.5.6 '@types/node': ^17.0.45 '@types/qs': ^6.9.7 '@types/uuid': ^8.3.4 @@ -102,6 +103,7 @@ importers: '@tailwindcss/aspect-ratio': 0.4.0_tailwindcss@3.1.6 '@types/jsdom': 16.2.14 '@types/lodash.clonedeep': 4.5.7 + '@types/lodash.isequal': 4.5.6 '@types/node': 17.0.45 '@types/qs': 6.9.7 '@types/uuid': 8.3.4 @@ -2446,6 +2448,12 @@ packages: '@types/lodash': 4.14.182 dev: true + /@types/lodash.isequal/4.5.6: + resolution: {integrity: sha512-Ww4UGSe3DmtvLLJm2F16hDwEQSv7U0Rr8SujLUA2wHI2D2dm8kPu6Et+/y303LfjTIwSBKXB/YTUcAKpem/XEg==} + dependencies: + '@types/lodash': 4.14.182 + dev: true + /@types/lodash/4.14.182: resolution: {integrity: sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==} dev: true diff --git a/src/utils/permission.ts b/src/utils/permission.ts index 110ec61c..7d2128cf 100644 --- a/src/utils/permission.ts +++ b/src/utils/permission.ts @@ -1,4 +1,4 @@ -import isEqual from "lodash.isEqual"; +import isEqual from "lodash.isequal"; export function hasPermission( uiPermissions: Array,