grab that sweet 2022.12 release (ty for yalls work) #4

Merged
desea merged 53 commits from AkkomaGang/akkoma-fe:stable into cuddlegirls 2022-12-10 19:19:21 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b1f41add0e - Show all commits

View File

@ -650,7 +650,7 @@ const getReports = ({ state, limit, page, pageSize, credentials }) => {
url = url + (args ? '?' + args : '')
return fetch(url, { headers: authHeaders(credentials) })
.then((data) => data.json())
.then((data) => data.reports.map(parseReport))
.then((data) => data?.reports?.map(parseReport) ?? [])
}
const updateReportStates = ({ credentials, reports }) => {