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); }