« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/language.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/data/language.js b/src/data/language.js
index f91e123d..99b60d83 100644
--- a/src/data/language.js
+++ b/src/data/language.js
@@ -72,7 +72,11 @@ export function unflattenLanguageSpec(flat, reference) {
   const setNestedProp = (obj, key, value) => {
     const recursive = (o, k) => {
       if (k.length === 1) {
-        o[k[0]] = value;
+        if (typeof o[k[0]] === 'object') {
+          o[k[0]] = {...o[k[0]], _: value};
+        } else {
+          o[k[0]] = value;
+        }
         return;
       }