Fix: 絵文字フォルダが正常に判定されない

This commit is contained in:
mattyatea 2023-10-19 18:50:37 +09:00
parent 87d49b5bbf
commit 8ac5dad60b
1 changed files with 12 additions and 8 deletions

View File

@ -159,15 +159,19 @@ customEmojiCategories.value.forEach(e => {
const groupedData = {}; const groupedData = {};
split_categories.forEach((item) => { split_categories.forEach((item) => {
if (!groupedData[item[0]]) { const key = item[0];
groupedData[item[0]] = [];
groupedData[item[0]].push(item[0]);
}else{
groupedData[item[0]].push(item[1]);
}
});
console.log(groupedData)
if (!groupedData[key]) {
groupedData[key] = [];
groupedData[key].push(item[0]);
}
if (item[1] !== undefined){
groupedData[key].push(item[1]);
}
});
console.log(groupedData)
watch(q, () => { watch(q, () => {
if (emojisEl.value) emojisEl.value.scrollTop = 0; if (emojisEl.value) emojisEl.value.scrollTop = 0;