Silent fail for custom emojis fetch

This commit is contained in:
Lim Chee Aun 2022-12-26 20:21:16 +08:00
parent e320a5be4a
commit b25b54b79e

View file

@ -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);
}
})();
}, []);