From 708c38b0895eaab7fc19c9cde495d884094df5bd Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Thu, 6 Oct 2016 15:51:49 +0300 Subject: [PATCH] "Add line" was broken after last commits --- frontend/app/map/lines/lines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/map/lines/lines.js b/frontend/app/map/lines/lines.js index f37a6334..9e7a3463 100644 --- a/frontend/app/map/lines/lines.js +++ b/frontend/app/map/lines/lines.js @@ -24,7 +24,7 @@ var linesUi = { _addLine: function(line) { var trackPoints = [ ]; - var p = (editingLineId == line.id ? line.routePoints : line.trackPoints) || [ ]; + var p = (editingLineId != null && editingLineId == line.id ? line.routePoints : line.trackPoints) || [ ]; for(var i=0; i