From d1bb2c1ce24b22b3db9573331c91a85dd36f5bc3 Mon Sep 17 00:00:00 2001 From: Anthony Hughes Date: Wed, 13 Jan 2016 21:38:30 +0000 Subject: [PATCH] Fix "Cannot read property 'id' of null" error when features not found for a track --- web/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index 7c59819..817c565 100644 --- a/web/index.html +++ b/web/index.html @@ -499,7 +499,7 @@

'', '', '', - '', + // '', '', '', track @@ -529,7 +529,9 @@

.then(function(trackFeatures) { var fmap = {}; _.each(trackFeatures, function(trackFeature, i) { - fmap[trackFeature.id] = trackFeature; + if (trackFeature) { + fmap[trackFeature.id] = trackFeature; + } }); _.each(tracks.items, function(item, i) {