pull/4999/head
Joseph Izang 4 months ago
parent 8df9a908d4
commit cbd6d6f6d3
  1. 3
      libs/remix-ui/workspace/src/lib/components/flat-tree.tsx

@ -69,7 +69,6 @@ export const FlatTree = (props: FlatTreeProps) => {
const [dragSource, setDragSource] = useState<FileType>() const [dragSource, setDragSource] = useState<FileType>()
const [isDragging, setIsDragging] = useState<boolean>(false) const [isDragging, setIsDragging] = useState<boolean>(false)
const ref = useRef(null) const ref = useRef(null)
const rowRef = useRef(null)
const containerRef = useRef<HTMLDivElement>(null) const containerRef = useRef<HTMLDivElement>(null)
const virtuoso = useRef<VirtuosoHandle>(null) const virtuoso = useRef<VirtuosoHandle>(null)
const [selectedItems, setSelectedItems] = useState<DragStructure[]>([]) const [selectedItems, setSelectedItems] = useState<DragStructure[]>([])
@ -140,9 +139,7 @@ export const FlatTree = (props: FlatTreeProps) => {
const target = await getEventTarget(event) const target = await getEventTarget(event)
setDragSource(flatTree.find((item) => item.path === target.path)) setDragSource(flatTree.find((item) => item.path === target.path))
setIsDragging(true) setIsDragging(true)
// const items =
buildMultiSelectedItemProfiles(target) buildMultiSelectedItemProfiles(target)
// setSelectedItems(items)
setFilesSelected(selectedItems.map((item) => item.path)) setFilesSelected(selectedItems.map((item) => item.path))
} }

Loading…
Cancel
Save