diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts index 2263bedc6..a580a652d 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts @@ -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;