fix: do not fail when editing map infos if no licence is set (#2287)

This commit is contained in:
Yohan Boniface 2024-11-22 10:17:37 +01:00 committed by GitHub
commit 4350f55e67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -405,7 +405,7 @@ L.FormBuilder.LicenceChooser = L.FormBuilder.Select.extend({
},
toHTML: function () {
return this.get().name
return this.get()?.name
},
toJS: function () {