don't use ErrPromise

This commit is contained in:
kakkokari-gtyih 2024-06-23 14:34:16 +09:00
parent 7aad04377d
commit f926640b3b
9 changed files with 885 additions and 873 deletions

View file

@ -58,6 +58,7 @@ import { miLocalStorage } from '@/local-storage.js';
import { customEmojis } from '@/custom-emojis.js';
import { MFM_TAGS, MFM_PARAMS } from '@/const.js';
import { searchEmoji, EmojiDef } from '@/scripts/search-emoji.js';
import { isAPIError } from 'misskey-js/api.js';
const lib = emojilist.filter(x => x.category !== 'flags');
@ -206,6 +207,10 @@ function exec() {
fetching.value = false;
//
sessionStorage.setItem(cacheKey, JSON.stringify(searchedUsers));
}).catch((err) => {
if (isAPIError(err)) {
console.error(err);
}
});
}
} else if (props.type === 'hashtag') {