fix(frontend): keep node id when upgrading from list view (#567)

In list view, the per-node upgrade button set upgradeTargetNodeId and then
called openUpgradeModal("single") without an id, which resets the target to
null. handleConfirmUpgrade then matched neither branch, so "确认升级" sent no
request and the modal stayed open. Pass node.id the same way grid view does.

Co-authored-by: Sebastian Luo <sebastianluo@Sebastians-MacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian Luo
2026-10-24 20:18:20 +10:00
committed by GitHub
parent c794586cc7
commit dd3ed4e284
+1 -4
View File
@@ -1977,10 +1977,7 @@ export default function NodePage() {
isLoading={node.upgradeLoading}
size="sm"
variant="flat"
onPress={() => {
setUpgradeTargetNodeId(node.id);
openUpgradeModal("single");
}}
onPress={() => openUpgradeModal("single", node.id)}
>
升级
</Button>