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: #27 Fixed tag question list parameter
shuaid98502487781
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.tsindex 6558a97c..4f39ecbe 100644--- a/ui/src/common/interface.ts+++ b/ui/src/common/interface.ts@@ -218,7 +218,7 @@ export type QuestionOrderBy =export interface QueryQuestionsReq extends Paging {order: QuestionOrderBy;- tags?: string[];+ tag?: string;}export type AdminQuestionStatus = 'available' | 'closed' | 'deleted';diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsxindex 295b9034..2e487a2d 100644--- a/ui/src/components/QuestionList/index.tsx+++ b/ui/src/components/QuestionList/index.tsx@@ -92,11 +92,11 @@ const QuestionList: FC<Props> = ({ source }) => {page_size: pageSize,page: curPage,order: curOrder as Type.QuestionOrderBy,- tags: [tagName],+ tag: tagName,};if (source === 'questions') {- delete reqParams.tags;+ delete reqParams.tag;}const { data: listData, isLoading } = useQuestionList(reqParams);const count = listData?.count || 0;