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: Filter out parameters of linked list unanswered
shuaie071f3e7b6cc
diff --git a/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx b/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsxindex 22952af0..42a0c94e 100644--- a/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx+++ b/ui/src/pages/Questions/Detail/components/LinkedQuestions/index.tsx@@ -53,7 +53,7 @@ const Index: FC<Props> = ({ id }) => {<Card className="mb-4"><Card.Header className="text-nowrap d-flex justify-content-between text-capitalize">{t('title')}- <Link to={`/questions/linked/${id}`} className="btn btn-link p-0">+ <Link to={`/linked/${id}`} className="btn btn-link p-0">{t('more', { keyPrefix: 'btns' })}</Link></Card.Header>diff --git a/ui/src/pages/Questions/Linked/index.tsx b/ui/src/pages/Questions/Linked/index.tsxindex 9a08af52..bf8465fa 100644--- a/ui/src/pages/Questions/Linked/index.tsx+++ b/ui/src/pages/Questions/Linked/index.tsx@@ -73,6 +73,11 @@ const LinkedQuestions: FC = () => {title: t('title'),});+ console.log(+ 'listData',+ QUESTION_ORDER_KEYS.filter((v) => v !== 'unanswered').slice(0, 5),+ );+return (<Row className="pt-4 mb-5"><Col className="page-main flex-auto">@@ -85,7 +90,9 @@ const LinkedQuestions: FC = () => {source="linked"data={listData}order={curOrder}- orderList={QUESTION_ORDER_KEYS.slice(0, 5)}+ orderList={QUESTION_ORDER_KEYS.filter(+ (v) => v !== 'unanswered',+ ).slice(0, 5)}isLoading={listLoading}/></Col>