From f7c1b8f1239d720493738565aee458476ebfbea7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 20 Nov 2024 16:44:15 +0100 Subject: [PATCH] fix: do not fail when editing map infos if no licence is set --- umap/static/umap/js/umap.forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.forms.js b/umap/static/umap/js/umap.forms.js index c7ea1bed..d31d4f32 100644 --- a/umap/static/umap/js/umap.forms.js +++ b/umap/static/umap/js/umap.forms.js @@ -405,7 +405,7 @@ L.FormBuilder.LicenceChooser = L.FormBuilder.Select.extend({ }, toHTML: function () { - return this.get().name + return this.get()?.name }, toJS: function () {