Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Train nov8-b: #4653 shows no drop line over another department's bot in the rail

milind-soni248f5357a208
diff --git a/src/components/SidebarBotDrag.tsx b/src/components/SidebarBotDrag.tsx
index 28e6714ead..751e7fc650 100644
--- a/src/components/SidebarBotDrag.tsx
+++ b/src/components/SidebarBotDrag.tsx
@@ -114,6 +114,8 @@ export function useSidebarBotDrag({ dispatch, announce, onNamed, onRenamed, onEr
onDragEnd: end,
onDragOver: (event) => {
if (!carries(event) || !moving.current.botId) return;
+ // Within one list only (the collapsed rail): another list's row shows no drop line, since the drop is refused.
+ if (latest.current.withinList && botListOf(latest.current.lists, botId) !== botListOf(latest.current.lists, moving.current.botId)) return show(null);
event.preventDefault();
event.stopPropagation();
event.dataTransfer.dropEffect = "move";