mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +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();
|
const customEmojis = useRef();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
|
try {
|
||||||
const emojis = await masto.v1.customEmojis.list();
|
const emojis = await masto.v1.customEmojis.list();
|
||||||
console.log({ emojis });
|
console.log({ emojis });
|
||||||
customEmojis.current = emojis;
|
customEmojis.current = emojis;
|
||||||
|
} catch (e) {
|
||||||
|
// silent fail
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue