We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab01b5 commit 4cf9e7cCopy full SHA for 4cf9e7c
src/backend/services/action-error-handler/action-error-handler.ts
@@ -51,6 +51,12 @@ const actionErrorHandler = (
51
52
const recordJson = record?.toJSON?.(currentAdmin)
53
54
+ if (error instanceof ForbiddenError && recordJson) {
55
+ recordJson.params = {}
56
+ recordJson.title = ''
57
+ recordJson.populated = {}
58
+ }
59
+
60
notice = {
61
message: baseMessage,
62
type: 'error',
0 commit comments