From a84fb8b5df40fbc1d6c1f305143a48926e755f40 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 16 Aug 2022 23:21:34 +0200 Subject: [PATCH] fix(lists): moving a list into another namespace on the first position Resolves https://kolaente.dev/vikunja/frontend/issues/2240 --- src/components/home/navigation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue index a2292f59..5f378abd 100644 --- a/src/components/home/navigation.vue +++ b/src/components/home/navigation.vue @@ -243,7 +243,7 @@ function updateActiveLists(namespace: NamespaceModel, activeLists: ListModel[]) const listUpdating = ref<{ [id: NamespaceModel['id']]: boolean }>({}) async function saveListPosition(e: SortableEvent) { - if (!e.newIndex) return + if (!e.newIndex && e.newIndex !== 0) return const namespaceId = parseInt(e.to.dataset.namespaceId as string) const newNamespaceIndex = parseInt(e.to.dataset.namespaceIndex as string)