Skip to content

Commit 082469b

Browse files
committed
Fix breaking change
1 parent 8d2c73b commit 082469b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/ra-core/src/auth/usePermissions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ const usePermissions = <Permissions = any, Error = any>(
5050
? () => authProvider.getPermissions(params)
5151
: async () => [],
5252
{
53-
...queryParams,
5453
onError: error => {
54+
if (process.env.NODE_ENV !== 'production') {
55+
console.error(error);
56+
}
5557
logoutIfAccessDenied(error);
5658
},
59+
...queryParams,
5760
}
5861
);
5962

0 commit comments

Comments
 (0)