버튼 정렬기능 수정

This commit is contained in:
kjs
2025-10-24 17:27:22 +09:00
parent addff4769b
commit 31bd9c26b7
5 changed files with 843 additions and 105 deletions

View File

@@ -147,6 +147,14 @@ function FlowEditorInner({ initialFlowId }: FlowEditorInnerProps) {
flowData.nodes || [],
flowData.edges || [],
);
// 🆕 플로우 로드 후 첫 번째 노드 자동 선택
if (flowData.nodes && flowData.nodes.length > 0) {
const firstNode = flowData.nodes[0];
selectNodes([firstNode.id]);
setShowPropertiesPanelLocal(true);
console.log("✅ 첫 번째 노드 자동 선택:", firstNode.id);
}
}
} catch (error) {
console.error("플로우 로드 실패:", error);
@@ -155,7 +163,7 @@ function FlowEditorInner({ initialFlowId }: FlowEditorInnerProps) {
};
fetchAndLoadFlow();
}, [initialFlowId]);
}, [initialFlowId, loadFlow, selectNodes]);
/**
* 노드 선택 변경 핸들러