Fix web title cleaning problem

This commit is contained in:
yangdx
2025-04-05 00:41:49 +08:00
parent 9e9dfe506f
commit 1c0b94c46f
2 changed files with 12 additions and 12 deletions

View File

@@ -51,10 +51,10 @@ const useBackendStateStoreBase = create<BackendState>()((set) => ({
}
// Update custom title information if health check returns it
if (health.webui_title || health.webui_description) {
if ('webui_title' in health || 'webui_description' in health) {
useAuthStore.getState().setCustomTitle(
health.webui_title || null,
health.webui_description || null
'webui_title' in health ? (health.webui_title ?? null) : null,
'webui_description' in health ? (health.webui_description ?? null) : null
);
}