diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index ee685e600a..aa990f4c6e 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -96,6 +96,8 @@ const initSortable = (el: Element) => { onEnd: async (evt) => { const { newIndex = 0, oldIndex = 0 } = evt + if(newIndex === oldIndex) return + const itemEl = evt.item as HTMLLIElement const item = tablesById[itemEl.dataset.id as string] @@ -193,6 +195,7 @@ const initSortable = (el: Element) => { }), ) }, + revertOnSpill: true, }) }