Don't try to load gpx if drag and drop fileList empty

This commit is contained in:
Bryan Housel
2016-04-14 01:10:05 -04:00
parent 5f3eae9c29
commit 2e50422a01
+1
View File
@@ -128,6 +128,7 @@ iD.svg.Gpx = function(projection, context, dispatch) {
};
drawGpx.files = function(fileList) {
if (!fileList.length) return this;
var f = fileList[0],
reader = new FileReader();