« get me outta code hell

data steps: stringify args to list intl functions - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-03-29 09:39:09 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-03-29 09:39:09 -0300
commit589dfa71fd73661e990d0d7ef70bd700b2e58165 (patch)
treee7b81b6bec46fe8d5936ad3fba3769db76939619
parent8a1740168b260cd2f7a9ab6e8befff489943d2b1 (diff)
data steps: stringify args to list intl functions
-rw-r--r--src/data/things/language.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/language.js b/src/data/things/language.js
index 3086ad2e..98ab9bc7 100644
--- a/src/data/things/language.js
+++ b/src/data/things/language.js
@@ -252,19 +252,19 @@ export class Language extends Thing {
   // Conjunction list: A, B, and C
   formatConjunctionList(array) {
     this.assertIntlAvailable('intl_listConjunction');
-    return this.intl_listConjunction.format(array);
+    return this.intl_listConjunction.format(array.map(arr => arr.toString()));
   }
 
   // Disjunction lists: A, B, or C
   formatDisjunctionList(array) {
     this.assertIntlAvailable('intl_listDisjunction');
-    return this.intl_listDisjunction.format(array);
+    return this.intl_listDisjunction.format(array.map(arr => arr.toString()));
   }
 
   // Unit lists: A, B, C
   formatUnitList(array) {
     this.assertIntlAvailable('intl_listUnit');
-    return this.intl_listUnit.format(array);
+    return this.intl_listUnit.format(array.map(arr => arr.toString()));
   }
 
   // File sizes: 42.5 kB, 127.2 MB, 4.13 GB, 998.82 TB