mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 09:35:54 +08:00
fix
This commit is contained in:
parent
5cb018e15d
commit
4f5dc82459
@ -385,7 +385,15 @@ export const useNodesInteractions = () => {
|
|||||||
handleSyncWorkflowDraft()
|
handleSyncWorkflowDraft()
|
||||||
saveStateToHistory(WorkflowHistoryEvent.NodeConnect)
|
saveStateToHistory(WorkflowHistoryEvent.NodeConnect)
|
||||||
}
|
}
|
||||||
}, [getNodesReadOnly, store, handleSyncWorkflowDraft, saveStateToHistory, checkNestedParallelLimit])
|
else {
|
||||||
|
const {
|
||||||
|
setConnectingNodePayload,
|
||||||
|
setEnteringNodePayload,
|
||||||
|
} = workflowStore.getState()
|
||||||
|
setConnectingNodePayload(undefined)
|
||||||
|
setEnteringNodePayload(undefined)
|
||||||
|
}
|
||||||
|
}, [getNodesReadOnly, store, workflowStore, handleSyncWorkflowDraft, saveStateToHistory, checkNestedParallelLimit])
|
||||||
|
|
||||||
const handleNodeConnectStart = useCallback<OnConnectStart>((_, { nodeId, handleType, handleId }) => {
|
const handleNodeConnectStart = useCallback<OnConnectStart>((_, { nodeId, handleType, handleId }) => {
|
||||||
if (getNodesReadOnly())
|
if (getNodesReadOnly())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user