From 8f0cd5adcf014e6fc632290024622d738ccdaf2b Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 10 Sep 2024 22:50:28 -0700 Subject: [PATCH] fix latent regression from my last pr --- frontend/layout/lib/TileLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/layout/lib/TileLayout.tsx b/frontend/layout/lib/TileLayout.tsx index 9f48585e1..eefdfa03c 100644 --- a/frontend/layout/lib/TileLayout.tsx +++ b/frontend/layout/lib/TileLayout.tsx @@ -303,8 +303,8 @@ const OverlayNode = memo(({ node, layoutModel }: OverlayNodeProps) => { () => ({ accept: dragItemType, canDrop: (_, monitor) => { - const dragItemId = monitor.getItem(); - if (monitor.isOver({ shallow: true }) && dragItemId !== node.id) { + const dragItem = monitor.getItem(); + if (monitor.isOver({ shallow: true }) && dragItem.id !== node.id) { return true; } return false;