From bfc42638a46ea87725e89c44405878e9a37dcbca Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 4 May 2022 15:00:39 +0200 Subject: [PATCH] fixed supermarket category ordering --- vue/src/apps/ShoppingListView/ShoppingListView.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vue/src/apps/ShoppingListView/ShoppingListView.vue b/vue/src/apps/ShoppingListView/ShoppingListView.vue index 0706a768f..5045e538a 100644 --- a/vue/src/apps/ShoppingListView/ShoppingListView.vue +++ b/vue/src/apps/ShoppingListView/ShoppingListView.vue @@ -1624,8 +1624,7 @@ export default { this.editing_supermarket_categories.forEach((element, index) => { let apiClient = new ApiApiFactory() - console.log(`relation id ${element.relation_id} order ${element.order} element ${element.order}`) - promises.push(apiClient.partialUpdateSupermarketCategoryRelation(element.relation_id, {order: element.order})) + promises.push(apiClient.partialUpdateSupermarketCategoryRelation(element.relation_id, {order: index})) }) return Promise.all(promises).then(() => {