统一节点选区的严格空值判断
Project CI / Repository checks (pull_request) Failing after 12s
Project CI / Backend tests (pull_request) Failing after 19s
Project CI / Frontend tests (pull_request) Successful in 2m57s
Project CI / Native shell tests (pull_request) Successful in 18m0s

将 selectedNodeId 的宽松不等比较改为 !== null
This commit is contained in:
2026-09-04 18:07:08 +08:00
parent 6f0bae7724
commit 6f29c60d63
@@ -917,7 +917,7 @@ export function useUiEditorSession(
setStatus('无法删除该节点。');
return result;
}
if (selectedNodeId != null && deletedNodeIds?.has(selectedNodeId)) {
if (selectedNodeId !== null && deletedNodeIds?.has(selectedNodeId)) {
setSelectedNodeId(null);
}
return result;