This commit is contained in:
Yohan Boniface 2025-04-17 09:39:57 -04:00 committed by GitHub
commit 4ee9f10fc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -645,7 +645,7 @@ export class DataLayer {
}
edit() {
if (!this._umap.editEnabled || !this.isLoaded()) {
if (!this._umap.editEnabled) {
return
}
const container = DomUtil.create('div', 'umap-layer-properties-container')
@ -1105,7 +1105,7 @@ export class DataLayer {
async save() {
if (this.isDeleted) return await this.saveDelete()
if (!this.isLoaded()) return
if (!this.isRemoteLayer() && !this.isLoaded()) return
const geojson = this.umapGeoJSON()
const formData = new FormData()
formData.append('name', this.options.name)