fix: Prevent workflow data updates in subgraph interaction mode

This commit is contained in:
zhsama
2026-01-22 20:44:52 +08:00
parent 5e78aaaec3
commit e22996735f

View File

@ -223,6 +223,8 @@ export const Workflow: FC<WorkflowProps> = memo(({
const store = useStoreApi()
eventEmitter?.useSubscription((v: any) => {
if (v.type === WORKFLOW_DATA_UPDATE) {
if (interactionMode === 'subgraph')
return
setNodes(v.payload.nodes)
store.getState().setNodes(v.payload.nodes)
setEdges(v.payload.edges)