mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-15 11:40:38 +08:00
docs
refactor: reimplement logic of remove multiple keys
This commit is contained in:
@@ -284,7 +284,7 @@ const findSiblingsAndIndex = (node, nodes) => {
|
||||
}
|
||||
|
||||
// delay save until stop drop after 2 seconds
|
||||
const saveSort = debounce(connectionStore.saveConnectionSort, 2000, { trailing: true })
|
||||
const saveSort = debounce(connectionStore.saveConnectionSorted, 2000, { trailing: true })
|
||||
const handleDrop = ({ node, dragNode, dropPosition }) => {
|
||||
const [dragNodeSiblings, dragNodeIndex] = findSiblingsAndIndex(dragNode, connectionStore.connections)
|
||||
if (dragNodeSiblings === null || dragNodeIndex === null) {
|
||||
|
Reference in New Issue
Block a user