Skip to content

Commit

Permalink
fix: always call propagate at end of save
Browse files Browse the repository at this point in the history
Otherwise the renderEditToolbar will reset name and all.

fix #2225
  • Loading branch information
yohanboniface committed Oct 21, 2024
1 parent e100809 commit ae79dae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions umap/static/umap/js/umap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,6 @@ U.Map = L.Map.extend({
return
}
this.options.user = data.user
this.renderEditToolbar()
if (!this.options.umap_id) {
this.options.umap_id = data.id
this.permissions.setOptions(data.permissions)
Expand Down Expand Up @@ -1087,7 +1086,6 @@ U.Map = L.Map.extend({
} else {
window.location = data.url
}
this.propagate()
return true
},

Expand All @@ -1107,6 +1105,7 @@ U.Map = L.Map.extend({
}
this.isDirty = false
this.renderEditToolbar()
this.propagate()
this.fire('saved')
},

Expand Down

0 comments on commit ae79dae

Please sign in to comment.