mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Fix crash when delete after drag
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user