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:
HJ 2026-01-21 15:46:51 +00:00
commit 7e67b5274d

View file

@ -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),