diff --git a/apps/web/src/components/DocumentsTree.tsx b/apps/web/src/components/DocumentsTree.tsx index fe3a45e6..aca04242 100644 --- a/apps/web/src/components/DocumentsTree.tsx +++ b/apps/web/src/components/DocumentsTree.tsx @@ -16,7 +16,6 @@ import ReactDOM from 'react-dom' import { CSSProperties, MouseEventHandler, - ReactNode, useCallback, useEffect, useMemo, @@ -66,7 +65,6 @@ const layerStyles: CSSProperties = { const DocDragLayer = () => { const { item, - itemType, isDragging, initialCursorOffset, initialFileOffset, @@ -321,7 +319,7 @@ function NodeComponent(props: NodeComponentProps) { const containerRef = useRef(null) const linkRef = useRef(null) - const [{ isDragging }, drag, dragPreview] = useDrag({ + const [, drag, dragPreview] = useDrag({ type: 'document', item: props.document, collect: (monitor) => ({ @@ -565,7 +563,7 @@ function NodeComponent(props: NodeComponentProps) { )} - {props.isLast &&
} + {props.isLast && props.level === 0 &&
} ) }