From: David ‘Bombe’ Roden Date: Sun, 24 Nov 2019 11:03:06 +0000 (+0100) Subject: 🐛 fix X-Git-Tag: v81^2~22 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dc78b7c18c5f5040fd85b153764f49e7cd981b13;p=Sone.git 🐛 fix --- 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(", ") } /**