diff --git a/web/src/components/SortableList.vue b/web/src/components/SortableList.vue index 7213325..78f06f8 100644 --- a/web/src/components/SortableList.vue +++ b/web/src/components/SortableList.vue @@ -95,10 +95,9 @@ const before = array.value.slice( 0, movingIdx.value ); const after = array.value.slice( movingIdx.value + 1 ); const el = array.value[ movingIdx.value ]!; - const arr = before.concat( after ); - arr.splice( movingCurrentIdx.value, 0, el ); - array.value = arr; + array.value = before.concat( after ); + array.value.splice( movingCurrentIdx.value, 0, el ); movingIdx.value = -1; movingCurrentIdx.value = -1;