mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Silent fail for custom emojis fetch
This commit is contained in:
parent
e320a5be4a
commit
b25b54b79e
1 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
})();
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in a new issue