From cf77127335d0430f8a2ad4a162953e85a3346e06 Mon Sep 17 00:00:00 2001 From: Eragon Date: Fri, 5 Dec 2025 23:48:29 +0100 Subject: [PATCH] fix: Allow admin panel to init when c.tuple doesn't exists --- src/modules/adminSettings.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/adminSettings.js b/src/modules/adminSettings.js index 470c72b74..33cc8a595 100644 --- a/src/modules/adminSettings.js +++ b/src/modules/adminSettings.js @@ -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),