From b5c51d6563c0e099f421f6be6f6c2e586fb3bd90 Mon Sep 17 00:00:00 2001 From: Renan Rodrigues Date: Sat, 10 Oct 2020 09:44:32 -0300 Subject: [PATCH] ensure assign name of waypoint with empty string only if the original name has no value --- src/plan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plan.js b/src/plan.js index ecbd147e..b2bf2af6 100644 --- a/src/plan.js +++ b/src/plan.js @@ -248,7 +248,7 @@ }, this), dragEnd = L.bind(function(e) { this._waypoints[i].latLng = eventLatLng(e); - this._waypoints[i].name = ''; + this._waypoints[i].name ||= ''; if (this._geocoderElems) { this._geocoderElems[i].update(true); }