|
|
|
@ -23,7 +23,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => { |
|
|
|
|
const onDragOver = async (e: SyntheticEvent) => { |
|
|
|
|
e.preventDefault() |
|
|
|
|
const target = await getEventTarget(e) |
|
|
|
|
|
|
|
|
|
if (!target || !target.path) { |
|
|
|
|
clearTimeout(timer) |
|
|
|
|
setFolderToOpen(null) |
|
|
|
@ -61,7 +60,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => { |
|
|
|
|
} else { |
|
|
|
|
dragDestination = getFlatTreeItem(target.path) |
|
|
|
|
} |
|
|
|
|
console.log(dragDestination) |
|
|
|
|
if (dragDestination.isDirectory) { |
|
|
|
|
if (dragSource.isDirectory) { |
|
|
|
|
moveFolder(dragDestination.path, dragSource.path) |
|
|
|
|