Skip to content

Commit

Permalink
fix: do not fail when editing map infos if no licence is set (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface authored Nov 22, 2024
2 parents 735c74d + f7c1b8f commit 4350f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umap/static/umap/js/umap.forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ L.FormBuilder.LicenceChooser = L.FormBuilder.Select.extend({
},

toHTML: function () {
return this.get().name
return this.get()?.name
},

toJS: function () {
Expand Down

0 comments on commit 4350f55

Please sign in to comment.