Silent fail for custom emojis fetch

pull/31/head
Lim Chee Aun 2022-12-26 20:21:16 +08:00
rodzic e320a5be4a
commit b25b54b79e
1 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -90,9 +90,14 @@ function Compose({
const customEmojis = useRef();
useEffect(() => {
(async () => {
const emojis = await masto.v1.customEmojis.list();
console.log({ emojis });
customEmojis.current = emojis;
try {
const emojis = await masto.v1.customEmojis.list();
console.log({ emojis });
customEmojis.current = emojis;
} catch (e) {
// silent fail
console.error(e);
}
})();
}, []);