Skip to content

Commit

Permalink
Merge pull request #253 from shanmukhdutt/inventoryCount/#211
Browse files Browse the repository at this point in the history
Fixed: When calling getPermissions api duplicate permissionIds are passed in the payload(#211)
  • Loading branch information
ravilodhi authored Feb 9, 2024
2 parents c7f8a31 + 350ddff commit e9ea439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const actions: ActionTree<UserState, RootState> = {
if (permissionId) serverPermissionsFromRules.push(permissionId);

const serverPermissions = await UserService.getUserPermissions({
permissionIds: serverPermissionsFromRules
permissionIds: [...new Set(serverPermissionsFromRules)]
}, token);
const appPermissions = prepareAppPermissions(serverPermissions);

Expand Down

0 comments on commit e9ea439

Please sign in to comment.