Merge branch 'develop' of ssh://git.pleroma.social/pleroma/pleroma-fe into instance-migration
This commit is contained in:
commit
b2011429c6
1 changed files with 6 additions and 0 deletions
|
|
@ -107,6 +107,12 @@ const adminSettingsStorage = {
|
||||||
if (Array.isArray(value) && value.length > 0 && value[0].tuple) {
|
if (Array.isArray(value) && value.length > 0 && value[0].tuple) {
|
||||||
if (!preserveTuples) {
|
if (!preserveTuples) {
|
||||||
return value.reduce((acc, c) => {
|
return value.reduce((acc, c) => {
|
||||||
|
if (c.tuple == null) {
|
||||||
|
return {
|
||||||
|
...acc,
|
||||||
|
[c]: c,
|
||||||
|
}
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
...acc,
|
...acc,
|
||||||
[c.tuple[0]]: convert(c.tuple[1], preserveTuplesLv2),
|
[c.tuple[0]]: convert(c.tuple[1], preserveTuplesLv2),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue