Fix crash when delete after drag

This commit is contained in:
Gregory Schier
2025-10-15 14:07:55 -07:00
parent 267cd079ad
commit 19cae33382
2 changed files with 10 additions and 8 deletions

View File

@@ -300,7 +300,7 @@ function TreeInner<T extends { id: string }>(
const clearDragState = useCallback(() => {
jotaiStore.set(hoveredParentFamily(treeId), { parentId: null, index: null });
// jotaiStore.set(draggingIdsFamily(treeId), []);
jotaiStore.set(draggingIdsFamily(treeId), []);
}, [treeId]);
const handleDragEnd = useCallback(