From f8b13639aa34139c3008ddd572ba80371916ced1 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 23 Apr 2025 09:02:25 +0200 Subject: [PATCH] fix: show an error message if saving layer failed This could occur when server is down or there is no network. --- umap/static/umap/js/modules/data/layer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/static/umap/js/modules/data/layer.js b/umap/static/umap/js/modules/data/layer.js index 617fea1a..3d539384 100644 --- a/umap/static/umap/js/modules/data/layer.js +++ b/umap/static/umap/js/modules/data/layer.js @@ -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