fix: do not try to read undefined message on error in request.js
This commit is contained in:
parent
73c5a963d9
commit
258262ae14
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ export class ServerRequest extends Request {
|
|||
_onNOK(error) {
|
||||
if (error.status === 403) {
|
||||
this.ui.alert({
|
||||
content: message || L._('Action not allowed :('),
|
||||
content: error.message || L._('Action not allowed :('),
|
||||
level: 'error',
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue