mirror of
https://github.com/modrinth/code.git
synced 2026-08-26 17:44:50 +00:00
chore: misc moderation changes (#6690)
* fix: tech card not updating project status correctly * feat: pull out quick actions into buttons for reports * fix: reports duplicating in the reports queue * feat: allow for moderation keybinds to be rebindable * run prepr
This commit is contained in:
@@ -246,7 +246,9 @@ const { data: allReports } = await useLazyAsyncData('new-moderation-reports', as
|
||||
const enrichmentPromise = enrichReportBatch(reports)
|
||||
enrichmentPromises.push(enrichmentPromise)
|
||||
|
||||
currentOffset += reports.length
|
||||
// this is explicitly not the length of the reports array, because the API may return fewer reports due to a report in the middle not being
|
||||
// serializable if the offset is set to the reports array you can get the same report from the end multiple times.
|
||||
currentOffset += REPORT_ENDPOINT_COUNT
|
||||
|
||||
if (enrichmentPromises.length >= 3) {
|
||||
const completed = await Promise.all(enrichmentPromises.splice(0, 2))
|
||||
|
||||
Reference in New Issue
Block a user