chore(react-draggable): remove ts-ignore

This commit is contained in:
moklick
2022-05-03 10:09:43 +02:00
parent dcc05ad8cd
commit 8cb2f5e1d6
2 changed files with 1 additions and 5 deletions
-1
View File
@@ -232,7 +232,6 @@ export default (NodeComponent: ComponentType<NodeProps>) => {
]);
return (
// @ts-ignore
<DraggableCore
onStart={onDragStart}
onDrag={onDrag}
+1 -4
View File
@@ -24,9 +24,7 @@ const selector = (s: ReactFlowState) => ({
transform: s.transform,
selectedNodesBbox: s.selectedNodesBbox,
userSelectionActive: s.userSelectionActive,
selectedNodes: Array.from(s.nodeInternals)
.filter(([_, n]) => n.selected)
.map(([_, n]) => n),
selectedNodes: Array.from(s.nodeInternals.values()).filter((n) => n.selected),
snapToGrid: s.snapToGrid,
snapGrid: s.snapGrid,
updateNodePosition: s.updateNodePosition,
@@ -113,7 +111,6 @@ function NodesSelection({
return (
<div className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])} style={style}>
{/* @ts-ignore */}
<DraggableCore
scale={tScale}
grid={grid}