summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-29 09:31:49 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-29 09:31:49 +0900
commit845c202109d1e2b56d00203c7bc2a9d3ac9387fb (patch)
treebc22b2cafe8be51a0c2e64839479678a85e7c29c /packages/frontend/src/components
parentUpdate CHANGELOG.md (diff)
downloadmisskey-845c202109d1e2b56d00203c7bc2a9d3ac9387fb.tar.gz
misskey-845c202109d1e2b56d00203c7bc2a9d3ac9387fb.tar.bz2
misskey-845c202109d1e2b56d00203c7bc2a9d3ac9387fb.zip
fix(client): オートコンプリートが出ない問題を修正
Diffstat (limited to 'packages/frontend/src/components')
-rw-r--r--packages/frontend/src/components/MkAutocomplete.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/components/MkAutocomplete.vue b/packages/frontend/src/components/MkAutocomplete.vue
index 72783921d5..0e16acd332 100644
--- a/packages/frontend/src/components/MkAutocomplete.vue
+++ b/packages/frontend/src/components/MkAutocomplete.vue
@@ -56,14 +56,14 @@ type EmojiDef = {
const lib = emojilist.filter(x => x.category !== 'flags');
+const char2path = defaultStore.state.emojiStyle === 'twemoji' ? char2twemojiFilePath : char2fluentEmojiFilePath;
+
const emjdb: EmojiDef[] = lib.map(x => ({
emoji: x.char,
name: x.name,
url: char2path(x.char),
}));
-const char2path = defaultStore.state.emojiStyle === 'twemoji' ? char2twemojiFilePath : char2fluentEmojiFilePath;
-
for (const x of lib) {
if (x.keywords) {
for (const k of x.keywords) {