Browse Source

chore(gui-v2): do not update order if index doesn't change

pull/2837/head
braks 2 years ago
parent
commit
b6f5f15fa5
  1. 2
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

2
packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

@ -75,6 +75,8 @@ function initializeSortable(el: HTMLElement) {
const { newIndex = 0, oldIndex = 0 } = evt
if (newIndex === oldIndex) return
const currentItem: Record<string, any> = views.value[oldIndex]
// get items meta of before and after the moved item

Loading…
Cancel
Save