### What problem does this PR solve? feat: limit there to be only one line between two nodes #918 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -16,11 +16,11 @@ import {
|
||||
useHandleKeyUp,
|
||||
useSelectCanvasData,
|
||||
useShowDrawer,
|
||||
useValidateConnection,
|
||||
} from '../hooks';
|
||||
import { RagNode } from './node';
|
||||
|
||||
import ChatDrawer from '../chat/drawer';
|
||||
import { isValidConnection } from '../utils';
|
||||
import styles from './index.less';
|
||||
import { BeginNode } from './node/begin-node';
|
||||
import { CategorizeNode } from './node/categorize-node';
|
||||
@@ -49,6 +49,7 @@ function FlowCanvas({ chatDrawerVisible, hideChatDrawer }: IProps) {
|
||||
onNodesChange,
|
||||
onSelectionChange,
|
||||
} = useSelectCanvasData();
|
||||
const isValidConnection = useValidateConnection();
|
||||
|
||||
const { drawerVisible, hideDrawer, showDrawer, clickedNode } =
|
||||
useShowDrawer();
|
||||
|
||||
Reference in New Issue
Block a user