Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(flag): fix typo in putReport

haitao(lj)a4560de89c53
diff --git a/ui/src/hooks/useReportModal/index.tsx b/ui/src/hooks/useReportModal/index.tsx
index fe8d4593..2566ccd6 100644
--- a/ui/src/hooks/useReportModal/index.tsx
+++ b/ui/src/hooks/useReportModal/index.tsx
@@ -117,9 +117,8 @@ const useReportModal = (callback?: () => void) => {
if (params.isBackend && params.action === 'review') {
putReport({
action: params.type,
- // FIXME: typo
- flaged_content: content.value,
- flaged_type: reportType.type,
+ flagged_content: content.value,
+ flagged_type: reportType.type,
id: params.id,
}).then(() => {
callback?.();