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: Only the active issue list shows update time

shuai13c17f1d3ab7
diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx
index 066711bb..82baea6a 100644
--- a/ui/src/components/QuestionList/index.tsx
+++ b/ui/src/components/QuestionList/index.tsx
@@ -118,9 +118,15 @@ const QuestionList: FC<Props> = ({
/>
•
<FormatTime
- time={li.operated_at}
+ time={
+ curOrder === 'active' ? li.operated_at : li.created_at
+ }
className="text-secondary ms-1 flex-shrink-0"
- preFix={t(li.operation_type)}
+ preFix={
+ curOrder === 'active'
+ ? t(li.operation_type)
+ : t('asked')
+ }
/>
</div>
<Counts