mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +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,
|
||||
canDrop: (_, monitor) => {
|
||||
const dragItemId = monitor.getItem<string>();
|
||||
if (monitor.isOver({ shallow: true }) && dragItemId !== node.id) {
|
||||
const dragItem = monitor.getItem<LayoutNode>();
|
||||
if (monitor.isOver({ shallow: true }) && dragItem.id !== node.id) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user