From dc78b7c18c5f5040fd85b153764f49e7cd981b13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 24 Nov 2019 12:03:06 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=90=9B=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/javascript/sone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index efd72a5..3e50ee2 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -304,7 +304,7 @@ function getMenuSone(element) { * @returns {String} The created string */ function generateSoneList(sones) { - return sones.reduce((soneList, sone) => soneList + ", " + sone.name, "").substring(2) + return sones.map(sone => sone.name).join(", ") } /** -- 2.7.4