fix: Allow admin panel to init when c.tuple doesn't exists
This commit is contained in:
parent
02f952047d
commit
cf77127335
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