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

@ -25,6 +25,7 @@ You should also include the user name that made the change.
### Bugfixes
- Client: リアクションピッカーの高さが低くなったまま戻らないことがあるのを修正 @syuilo
- Client: ユーザー名オートコンプリートが正しく動作しない問題を修正 @syuilo
- Client: タッチ操作だとウィジェットの編集がしにくいのを修正 @xianonn
## 12.107.0 (2022/02/12)

View File

@ -19,6 +19,7 @@ module.exports = {
// e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため
"id-denylist": ["error", "window", "data", "e"],
'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
"no-shadow": ["warn"],
"vue/attributes-order": ["error", {
"alphabetical": false
}],

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;
}