From 9372afed6be4f3265d82f7ca962192ec6dbf7f86 Mon Sep 17 00:00:00 2001 From: Siyuan Date: Fri, 7 Nov 2025 16:16:58 +0000 Subject: [PATCH] fix(ui): correct custom update components order --- ui/src/routes/devices.$id.settings.general.update.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.general.update.tsx b/ui/src/routes/devices.$id.settings.general.update.tsx index 20a026cc..7e75d578 100644 --- a/ui/src/routes/devices.$id.settings.general.update.tsx +++ b/ui/src/routes/devices.$id.settings.general.update.tsx @@ -40,8 +40,8 @@ export default function SettingsGeneralUpdateRoute() { const onConfirmCustomUpdate = useCallback((appTargetVersion?: string, systemTargetVersion?: string) => { const components = []; - if (appTargetVersion) components.push("system"); - if (systemTargetVersion) components.push("app"); + if (appTargetVersion) components.push("app"); + if (systemTargetVersion) components.push("system"); send("tryUpdateComponents", { params: { @@ -97,6 +97,7 @@ export function Dialog({ const { modalView, setModalView, otaState } = useUpdateStore(); const forceCustomUpdate = customSystemVersion !== undefined || customAppVersion !== undefined; const onConfirmCustomUpdate = useCallback(() => { + console.debug("onConfirmCustomUpdate", customAppVersion, customSystemVersion, versionInfo); onConfirmCustomUpdateCallback( customAppVersion !== undefined ? customAppVersion : versionInfo?.remote?.appVersion, customSystemVersion !== undefined ? customSystemVersion : versionInfo?.remote?.systemVersion,