diff --git a/src/routes/_authed/comment-reports.tsx b/src/routes/_authed/comment-reports.tsx index 9eb511d..fc059d9 100644 --- a/src/routes/_authed/comment-reports.tsx +++ b/src/routes/_authed/comment-reports.tsx @@ -40,7 +40,8 @@ function ReportedCommentsPage() { const act = async (row: ReportedComment, action: ModerationAction, done: string) => { try { - await moderateReportedComment(row.id, action) + const response = await moderateReportedComment(row.id, action) + setDetail((current) => (current?.id === row.id ? response.data : current)) toast.success(done) void list.query.refetch() } catch (error) {