mirror of
https://github.com/langgenius/dify.git
synced 2026-03-16 12:27:42 +08:00
fix: Prevent workflow data updates in subgraph interaction mode
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user