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),
|
descendants: result.data.descendants.map(parseStatus),
|
||||||
},
|
},
|
||||||
}))
|
}))
|
||||||
.catch((error) => {
|
|
||||||
throw new Error('Error fetching timeline', error)
|
|
||||||
})
|
|
||||||
|
|
||||||
export const fetchStatus = ({ id, credentials }) =>
|
export const fetchStatus = ({ id, credentials }) =>
|
||||||
promisedRequest({
|
promisedRequest({
|
||||||
|
|
@ -161,9 +158,6 @@ export const fetchStatus = ({ id, credentials }) =>
|
||||||
credentials,
|
credentials,
|
||||||
})
|
})
|
||||||
.then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) }))
|
.then(({ data, ...rest }) => ({ ...rest, data: parseStatus(data) }))
|
||||||
.catch((error) => {
|
|
||||||
throw new Error('Error fetching timeline', error)
|
|
||||||
})
|
|
||||||
|
|
||||||
export const fetchStatusSource = ({ id, credentials }) =>
|
export const fetchStatusSource = ({ id, credentials }) =>
|
||||||
promisedRequest({
|
promisedRequest({
|
||||||
|
|
@ -171,9 +165,6 @@ export const fetchStatusSource = ({ id, credentials }) =>
|
||||||
credentials,
|
credentials,
|
||||||
})
|
})
|
||||||
.then(({ data, ...rest }) => ({ ...rest, data: parseSource(data) }))
|
.then(({ data, ...rest }) => ({ ...rest, data: parseSource(data) }))
|
||||||
.catch((error) => {
|
|
||||||
throw new Error('Error fetching timeline', error)
|
|
||||||
})
|
|
||||||
|
|
||||||
export const fetchStatusHistory = ({ status, credentials }) =>
|
export const fetchStatusHistory = ({ status, credentials }) =>
|
||||||
promisedRequest({
|
promisedRequest({
|
||||||
|
|
@ -281,9 +272,6 @@ export const search2 = ({
|
||||||
data.statuses = data.statuses.slice(0, limit).map((s) => parseStatus(s))
|
data.statuses = data.statuses.slice(0, limit).map((s) => parseStatus(s))
|
||||||
return { ...rest, data }
|
return { ...rest, data }
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
|
||||||
throw new Error('Error fetching timeline', error)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchKnownDomains = ({ credentials }) =>
|
export const fetchKnownDomains = ({ credentials }) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue