🐛 fix
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 24 Nov 2019 11:03:06 +0000 (12:03 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 24 Nov 2019 11:03:06 +0000 (12:03 +0100)
src/main/resources/static/javascript/sone.js

index efd72a5..3e50ee2 100644 (file)
@@ -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(", ")
 }
 
 /**