mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 13:50:42 +08:00
chore(views/table): remove logs
This commit is contained in:
parent
80d5536503
commit
6a0b24f032
1 changed files with 0 additions and 3 deletions
|
|
@ -135,7 +135,6 @@ function setupDragging() {
|
|||
onRowDragEnd(e) {
|
||||
const fromIndex = e.node.rowIndex;
|
||||
const toIndex = e.overNode?.rowIndex;
|
||||
console.log(fromIndex, toIndex);
|
||||
if (fromIndex === null || toIndex === null || toIndex === undefined || fromIndex === toIndex) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -148,10 +147,8 @@ function setupDragging() {
|
|||
}
|
||||
|
||||
if (isBelow) {
|
||||
console.log("Move below", fromIndex, toIndex);
|
||||
branches.moveAfterBranch([ fromBranchId ], toBranchId);
|
||||
} else {
|
||||
console.log("Move above", fromIndex, toIndex);
|
||||
branches.moveBeforeBranch([ fromBranchId ], toBranchId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue