mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 15:05:38 -04:00
fix(profiles): Probably definite fix for profile editor
This commit is contained in:
parent
376cca9140
commit
f67fcecddd
@ -228,7 +228,7 @@
|
|||||||
<h4 class="h5">
|
<h4 class="h5">
|
||||||
<T>profile.column</T> {{i + 1}}
|
<T>profile.column</T> {{i + 1}}
|
||||||
</h4>
|
</h4>
|
||||||
<OpinionListInput v-if="words[i]" v-model="words[i].values" group="words"/>
|
<OpinionListInput v-model="words[i].values" group="words"/>
|
||||||
</template>
|
</template>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -260,6 +260,16 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function coerceWords(words) {
|
||||||
|
for (let i = 0; i < 4; i++) {
|
||||||
|
words[i] ??= {
|
||||||
|
header: null,
|
||||||
|
values: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return words;
|
||||||
|
}
|
||||||
|
|
||||||
const buildProfile = (profiles, currentLocale) => {
|
const buildProfile = (profiles, currentLocale) => {
|
||||||
for (let locale in profiles) {
|
for (let locale in profiles) {
|
||||||
if (!profiles.hasOwnProperty(locale)) {
|
if (!profiles.hasOwnProperty(locale)) {
|
||||||
@ -275,7 +285,7 @@
|
|||||||
links: profile.links,
|
links: profile.links,
|
||||||
flags: profile.flags,
|
flags: profile.flags,
|
||||||
customFlags: profile.customFlags,
|
customFlags: profile.customFlags,
|
||||||
words: profile.words,
|
words: coerceWords(profile.words),
|
||||||
teamName: profile.teamName,
|
teamName: profile.teamName,
|
||||||
footerName: profile.footerName,
|
footerName: profile.footerName,
|
||||||
footerAreas: profile.footerAreas,
|
footerAreas: profile.footerAreas,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user