From 6f360020adc20e89b8088af93d5f7892a3ca4552 Mon Sep 17 00:00:00 2001 From: shanmukhdutt Date: Wed, 17 Jan 2024 18:14:38 +0530 Subject: [PATCH] Removed: Duplicate PermissionIds --- src/store/modules/user/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/user/actions.ts b/src/store/modules/user/actions.ts index e73b740a..2cc85924 100644 --- a/src/store/modules/user/actions.ts +++ b/src/store/modules/user/actions.ts @@ -28,7 +28,7 @@ const actions: ActionTree = { if (permissionId) serverPermissionsFromRules.push(permissionId); const serverPermissions = await UserService.getUserPermissions({ - permissionIds: serverPermissionsFromRules + permissionIds: [...new Set(serverPermissionsFromRules)] }, token); const appPermissions = prepareAppPermissions(serverPermissions);