From 6221bfd1e827d17698e09c3e7b3995125f17e56e Mon Sep 17 00:00:00 2001 From: Jason Dekarske Date: Tue, 5 Apr 2022 12:12:57 -0700 Subject: [PATCH] does it have to be an array? --- apps/golfview/custom.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/golfview/custom.html b/apps/golfview/custom.html index 54204ac94..b619251cb 100644 --- a/apps/golfview/custom.html +++ b/apps/golfview/custom.html @@ -98,7 +98,7 @@ return course_input; } - var courses = {}; + var courses = []; $("#upload").click(function () { sendCustomizedApp({ storage: courses @@ -116,7 +116,7 @@ out = processFeatures(course_input.elements); out = preprocessCoords(out); console.log(out); - courses = JSON.parse(JSON.stringify(out)); // deep copy + courses.push(JSON.parse(JSON.stringify(out))); // deep copy $('#status').text("Course retrieved!"); $('#upload').attr("disabled", false); $('#download').attr("disabled", false);