fix: show an error message if saving layer failed

This could occur when server is down or there is no network.
This commit is contained in:
Yohan Boniface 2025-04-23 09:02:25 +02:00
parent 05493d8a48
commit f8b13639aa

View file

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