From 5f6e034dacc33971cb5e7ae56f81fc48d8964ae8 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 31 Aug 2026 16:59:58 +0200 Subject: [PATCH] fix: improve code quality --- web/src/components/SortableList.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;