chore(views/table): remove logs

This commit is contained in:
Elian Doran 2025-06-27 20:08:41 +03:00
parent 80d5536503
commit 6a0b24f032
No known key found for this signature in database

View File

@ -135,7 +135,6 @@ function setupDragging() {
onRowDragEnd(e) { onRowDragEnd(e) {
const fromIndex = e.node.rowIndex; const fromIndex = e.node.rowIndex;
const toIndex = e.overNode?.rowIndex; const toIndex = e.overNode?.rowIndex;
console.log(fromIndex, toIndex);
if (fromIndex === null || toIndex === null || toIndex === undefined || fromIndex === toIndex) { if (fromIndex === null || toIndex === null || toIndex === undefined || fromIndex === toIndex) {
return; return;
} }
@ -148,10 +147,8 @@ function setupDragging() {
} }
if (isBelow) { if (isBelow) {
console.log("Move below", fromIndex, toIndex);
branches.moveAfterBranch([ fromBranchId ], toBranchId); branches.moveAfterBranch([ fromBranchId ], toBranchId);
} else { } else {
console.log("Move above", fromIndex, toIndex);
branches.moveBeforeBranch([ fromBranchId ], toBranchId); branches.moveBeforeBranch([ fromBranchId ], toBranchId);
} }
} }