From 55efbdbba19f9e6b2dbfab04772e3c43621f87ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poussard?= <tpoussard@neogeo.fr> Date: Thu, 6 Jan 2022 16:27:21 +0100 Subject: [PATCH] fix up post/put switch offline features --- src/store/modules/feature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/feature.js b/src/store/modules/feature.js index fd331b50..8a1c1a0e 100644 --- a/src/store/modules/feature.js +++ b/src/store/modules/feature.js @@ -250,7 +250,7 @@ const feature = { } let updateMsg = { project: rootState.project_slug, - type: 'put', + type: routeName === "editer-signalement" ? "put" : "post", featureId: state.form.feature_id, geojson: geojson }; -- GitLab