From 2c294ff97894ad15144160937a0b50f6e58013f9 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Mon, 13 May 2024 20:09:24 +0900 Subject: [PATCH] update --- packages/frontend/src/pages/avatar-decorations.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/pages/avatar-decorations.vue b/packages/frontend/src/pages/avatar-decorations.vue index 673ccd027c..2e9d1dac0d 100644 --- a/packages/frontend/src/pages/avatar-decorations.vue +++ b/packages/frontend/src/pages/avatar-decorations.vue @@ -128,10 +128,10 @@ async function setCategoryBulk() { async function deletes() { if (selectItemsId.value.length > 0) { - for (let i = 0; i < selectItemsId.value.length; i++) { - let decoration = selectItemsId.value[i]; - del(decoration); - } + selectItemsId.value.forEach(decorationId => { + console.log(decorationId); + misskeyApi('admin/avatar-decorations/delete', { id: decorationId }); + }); } }