Skip to content

Commit

Permalink
Fix route layer not displayed after start and end markers created and…
Browse files Browse the repository at this point in the history
… unlinkable
  • Loading branch information
JustineFricou committed May 30, 2024
1 parent 161bd06 commit 3db8d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geotrek/core/static/core/multipath.js
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ L.Handler.MultiPath = L.Handler.extend({
// The last element of old_steps_indexes is where we start reusing the
// previous layers again
var old_steps_last_index = old_steps_indexes.at(-1)
if (this._routeIsValid == false && this._previousStepsNb > this._routeLayer.__layerArray.length + 1) {
if (this._routeIsValid == false && this._previousStepsNb > this._routeLayer?.__layerArray.length + 1) {
// If a new via marker is isolated and is now being removed or modified,
// the invalid part of the path was not displayed. So at this point,
// there is one more step, but there isn't one more layer.
Expand Down

0 comments on commit 3db8d0a

Please sign in to comment.