From 91edf3887176dc5f1f12c82ded8d905b006b6cfa Mon Sep 17 00:00:00 2001 From: mattyatea Date: Thu, 19 Oct 2023 18:50:07 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=B8=80=E6=8B=AC=E3=81=A7=E9=81=B8?= =?UTF-8?q?=E6=8A=9E=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MkCustomEmojiEditLocal.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/frontend/src/components/MkCustomEmojiEditLocal.vue b/packages/frontend/src/components/MkCustomEmojiEditLocal.vue index 7112a38430..9f688bc52f 100644 --- a/packages/frontend/src/components/MkCustomEmojiEditLocal.vue +++ b/packages/frontend/src/components/MkCustomEmojiEditLocal.vue @@ -64,13 +64,14 @@ const pagination = { }; const selectAll = () => { - if (selectedEmojis.value.length > 0) { - selectedEmojis.value = []; - } else { - selectedEmojis.value = emojisPaginationComponent.value.items.map(item => item.id); - } + if (selectedEmojis.value.length > 0) { + selectedEmojis.value = []; + } else { + selectedEmojis.value = Array.from(emojisPaginationComponent.value.items.values(), item => item.id); + } }; + const toggleSelect = (emoji) => { if (selectedEmojis.value.includes(emoji.id)) { selectedEmojis.value = selectedEmojis.value.filter(x => x !== emoji.id);