Merge branch 'fix-admin-panel-init-on-logger-console' into 'develop'
fix: Allow admin panel to init when c.tuple doesn't exists See merge request pleroma/pleroma-fe!2200
This commit is contained in:
commit
7e67b5274d
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 (!preserveTuples) {
|
||||
return value.reduce((acc, c) => {
|
||||
if (c.tuple == null) {
|
||||
return {
|
||||
...acc,
|
||||
[c]: c,
|
||||
}
|
||||
}
|
||||
return {
|
||||
...acc,
|
||||
[c.tuple[0]]: convert(c.tuple[1], preserveTuplesLv2),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue