mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
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:
commit
71d92aa610
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue