fix: do not try to read undefined message on error in request.js

This commit is contained in:
Yohan Boniface 2024-03-25 19:44:14 +01:00
parent 73c5a963d9
commit 258262ae14

View file

@ -146,7 +146,7 @@ export class ServerRequest extends Request {
_onNOK(error) { _onNOK(error) {
if (error.status === 403) { if (error.status === 403) {
this.ui.alert({ this.ui.alert({
content: message || L._('Action not allowed :('), content: error.message || L._('Action not allowed :('),
level: 'error', level: 'error',
}) })
} }