Skip to content

Commit 0a59884

Browse files
chore: lint
1 parent 72f538e commit 0a59884

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/useDraggable.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,7 @@ export function useDraggable<T>(...args: any[]): UseDraggableReturn {
173173
insertNodeAt(from, item, oldIndex!)
174174
if (isRef<any[]>(list)) {
175175
const newList = [...unref(list)]
176-
list.value = moveArrayElement(
177-
newList,
178-
oldIndex!,
179-
newIndex!
180-
)
176+
list.value = moveArrayElement(newList, oldIndex!, newIndex!)
181177
return
182178
}
183179
moveArrayElement(unref(list), oldIndex!, newIndex!)
@@ -208,7 +204,7 @@ export function useDraggable<T>(...args: any[]): UseDraggableReturn {
208204
}
209205

210206
function mergeOptions() {
211-
// eslint-disable-next-line
207+
// eslint-disable-next-line
212208
const { immediate, clone, ...restOptions } = unref(options) ?? {}
213209
return mergeOptionsEvents(
214210
list === null ? {} : presetOptions,

0 commit comments

Comments
 (0)