From 258262ae147fb9155b991ab632f14994aaade219 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 25 Mar 2024 19:44:14 +0100 Subject: [PATCH] fix: do not try to read undefined message on error in request.js --- umap/static/umap/js/modules/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/request.js b/umap/static/umap/js/modules/request.js index b90fbf92..d21759ed 100644 --- a/umap/static/umap/js/modules/request.js +++ b/umap/static/umap/js/modules/request.js @@ -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', }) }