fix: widget deletion and layout persistence issues

This commit is contained in:
ZacharyZcR
2025-10-09 09:02:38 +08:00
parent 74f537ea0b
commit a671ad79a1
3 changed files with 19 additions and 7 deletions

View File

@@ -414,6 +414,7 @@ router.put(
enableFileManager,
defaultPath,
tunnelConnections,
statsConfig,
} = hostData;
if (
!isNonEmptyString(userId) ||
@@ -450,6 +451,7 @@ router.put(
: null,
enableFileManager: enableFileManager ? 1 : 0,
defaultPath: defaultPath || null,
statsConfig: statsConfig || null,
};
if (effectiveAuthType === "password") {