fixes to timeline error handling
This commit is contained in:
parent
e6ca489d30
commit
d150dae5d1
7 changed files with 20 additions and 42 deletions
|
@ -560,7 +560,7 @@ const fetchTimeline = ({
|
|||
})
|
||||
.then((data) => data.json())
|
||||
.then((data) => {
|
||||
if (!data.error) {
|
||||
if (!data.errors) {
|
||||
return { data: data.map(isNotifications ? parseNotification : parseStatus), pagination }
|
||||
} else {
|
||||
data.status = status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue