diff --git a/client/src/components/display/NiceTable.vue b/client/src/components/display/NiceTable.vue index 10b31a0..4100b00 100644 --- a/client/src/components/display/NiceTable.vue +++ b/client/src/components/display/NiceTable.vue @@ -108,7 +108,10 @@ function dragDropRow() { data.splice(draggedRow, 1); data.splice(draggedOverRow, 0, row); data = data; - emit('draggedRow', draggedRow, draggedOverRow); + // Don't emit if we are at the same spot + if (draggedRow !== draggedOverRow){ + emit('draggedRow', draggedRow, draggedOverRow); + } } // Reset Drag & Remove Selection @@ -160,4 +163,4 @@ function dragDropRow() { .dragged-over-after { border-bottom: 0.25rem solid var(--cl-fg); } tr { cursor: grab; } - \ No newline at end of file +