fix(client): ユーザー名オートコンプリートが正しく動作しない問題を修正

This commit is contained in:
syuilo 2022-03-02 18:52:49 +09:00
parent dfdb66cf31
commit 072799f674
3 changed files with 4 additions and 3 deletions

View file

@ -192,8 +192,7 @@ function exec() {
const cache = sessionStorage.getItem(cacheKey);
if (cache) {
const users = JSON.parse(cache);
users.value = users;
users.value = JSON.parse(cache);
fetching.value = false;
} else {
os.api('users/search-by-username-and-host', {
@ -233,7 +232,7 @@ function exec() {
} else if (props.type === 'emoji') {
if (!props.q || props.q === '') {
// 使
emojis.value = defaultStore.state.recentlyUsedEmojis.map(emoji => emojiDb.find(e => e.emoji == emoji)).filter(x => x) as EmojiDef[];
emojis.value = defaultStore.state.recentlyUsedEmojis.map(emoji => emojiDb.find(e => e.emoji === emoji)).filter(x => x) as EmojiDef[];
return;
}