We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fafd2 commit c4bec83Copy full SHA for c4bec83
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/hooks/useWorkflow.tsx
@@ -302,8 +302,12 @@ export const useWorkflow = () => {
302
const [helperLineVertical, setHelperLineVertical] = useState<THelperLine>();
303
304
const checkNodeHelpLine = useMemoizedFn((change: NodeChange, nodes: Node[]) => {
305
- const positionChange = change.type === 'position' && change.dragging ? change : undefined;
+ let positionChange: NodePositionChange | undefined
306
307
+ if(change.type === 'position'){
308
+ positionChange = change.dragging ? change :undefined
309
+ }
310
+
311
if (positionChange?.position) {
312
// 只判断,3000px 内的 nodes,并按从近到远的顺序排序
313
const filterNodes = nodes
0 commit comments