mirror of
				https://github.com/langgenius/dify.git
				synced 2025-11-03 20:33:00 +00:00 
			
		
		
		
	fix: handleUpdateWorkflowCanvas is not a function (#4343)
This commit is contained in:
		
							parent
							
								
									ece0f08a2b
								
							
						
					
					
						commit
						0f14fdd4c9
					
				@ -2,11 +2,11 @@ import { memo, useCallback } from 'react'
 | 
			
		||||
import type { WorkflowDataUpdator } from '../types'
 | 
			
		||||
import Run from '../run'
 | 
			
		||||
import { useStore } from '../store'
 | 
			
		||||
import { useWorkflowInteractions } from '../hooks'
 | 
			
		||||
import { useWorkflowUpdate } from '../hooks'
 | 
			
		||||
 | 
			
		||||
const Record = () => {
 | 
			
		||||
  const historyWorkflowData = useStore(s => s.historyWorkflowData)
 | 
			
		||||
  const { handleUpdateWorkflowCanvas } = useWorkflowInteractions()
 | 
			
		||||
  const { handleUpdateWorkflowCanvas } = useWorkflowUpdate()
 | 
			
		||||
 | 
			
		||||
  const handleResultCallback = useCallback((res: any) => {
 | 
			
		||||
    const graph: WorkflowDataUpdator = res.graph
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user