fix: show an error message if saving layer failed (#2670)

This could occur when server is down or there is no network.
This commit is contained in:
Yohan Boniface 2025-04-23 17:40:19 +02:00 committed by GitHub
commit 71d92aa610
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1146,6 +1146,9 @@ export class DataLayer {
await this._umap.saveAll()
}
)
} else {
console.debug(error)
Alert.error(translate('Cannot save layer, please try again in a few minutes.'))
}
} else {
// Response contains geojson only if save has conflicted and conflicts have