don't rethrow
This commit is contained in:
parent
893ab9d73b
commit
8becc0704b
1 changed files with 0 additions and 12 deletions
|
|
@ -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 }) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue