From 8becc0704b6932133b2af3a54c2d221b7d119fc3 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 25 Jun 2026 15:36:49 +0300 Subject: [PATCH] don't rethrow --- src/api/public.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/api/public.js b/src/api/public.js index 7ce683dde..3817c0f82 100644 --- a/src/api/public.js +++ b/src/api/public.js @@ -151,9 +151,6 @@ export const fetchConversation = ({ id, credentials }) => descendants: result.data.descendants.map(parseStatus), }, })) - .catch((error) => { - throw new Error('Error fetching timeline', error) - }) export const fetchStatus = ({ id, credentials }) => promisedRequest({ @@ -161,9 +158,6 @@ export const fetchStatus = ({ id, credentials }) => credentials, }) .then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) })) - .catch((error) => { - throw new Error('Error fetching timeline', error) - }) export const fetchStatusSource = ({ id, credentials }) => promisedRequest({ @@ -171,9 +165,6 @@ export const fetchStatusSource = ({ id, credentials }) => credentials, }) .then(({ data, ...rest }) => ({ ...rest, data: parseSource(data) })) - .catch((error) => { - throw new Error('Error fetching timeline', error) - }) export const fetchStatusHistory = ({ status, credentials }) => promisedRequest({ @@ -281,9 +272,6 @@ export const search2 = ({ data.statuses = data.statuses.slice(0, limit).map((s) => parseStatus(s)) return { ...rest, data } }) - .catch((error) => { - throw new Error('Error fetching timeline', error) - }) } export const fetchKnownDomains = ({ credentials }) =>