mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-17 20:51:55 +01:00
fix latent regression from my last pr
This commit is contained in:
parent
9b12aa9882
commit
8f0cd5adcf
@ -303,8 +303,8 @@ const OverlayNode = memo(({ node, layoutModel }: OverlayNodeProps) => {
|
|||||||
() => ({
|
() => ({
|
||||||
accept: dragItemType,
|
accept: dragItemType,
|
||||||
canDrop: (_, monitor) => {
|
canDrop: (_, monitor) => {
|
||||||
const dragItemId = monitor.getItem<string>();
|
const dragItem = monitor.getItem<LayoutNode>();
|
||||||
if (monitor.isOver({ shallow: true }) && dragItemId !== node.id) {
|
if (monitor.isOver({ shallow: true }) && dragItem.id !== node.id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user