From 001fbe0975bf5fcce47372cba72b489178fd34e7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 1 Dec 2024 19:58:15 -0400 Subject: language: unflattenLanguageSpec: fix a problem... very descriptive makes one string unflatten that wasn't appearing before (trackPage.socialEmbed.body.withArtists.withCoverArtists) --- src/data/language.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit 1.3.0-6-gf8a5