mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
fixed supermarket category ordering
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user