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 ( return (
// @ts-ignore
<DraggableCore <DraggableCore
onStart={onDragStart} onStart={onDragStart}
onDrag={onDrag} onDrag={onDrag}
+1 -4
View File
@@ -24,9 +24,7 @@ const selector = (s: ReactFlowState) => ({
transform: s.transform, transform: s.transform,
selectedNodesBbox: s.selectedNodesBbox, selectedNodesBbox: s.selectedNodesBbox,
userSelectionActive: s.userSelectionActive, userSelectionActive: s.userSelectionActive,
selectedNodes: Array.from(s.nodeInternals) selectedNodes: Array.from(s.nodeInternals.values()).filter((n) => n.selected),
.filter(([_, n]) => n.selected)
.map(([_, n]) => n),
snapToGrid: s.snapToGrid, snapToGrid: s.snapToGrid,
snapGrid: s.snapGrid, snapGrid: s.snapGrid,
updateNodePosition: s.updateNodePosition, updateNodePosition: s.updateNodePosition,
@@ -113,7 +111,6 @@ function NodesSelection({
return ( return (
<div className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])} style={style}> <div className={cc(['react-flow__nodesselection', 'react-flow__container', noPanClassName])} style={style}>
{/* @ts-ignore */}
<DraggableCore <DraggableCore
scale={tScale} scale={tScale}
grid={grid} grid={grid}