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: timeline for question show answered as link

shuaidb592bfc01b6
diff --git a/ui/src/pages/Timeline/components/Item/index.tsx b/ui/src/pages/Timeline/components/Item/index.tsx
index ed96e137..bdc637f3 100644
--- a/ui/src/pages/Timeline/components/Item/index.tsx
+++ b/ui/src/pages/Timeline/components/Item/index.tsx
@@ -75,7 +75,7 @@ const Index: FC<Props> = ({ data, isAdmin, objectInfo, revisionList }) => {
</Link>
)}
- {data.object_type === 'question' &&
+ {objectInfo.object_type === 'question' &&
data.activity_type === 'answered' && (
<Link
to={`/questions/${objectInfo.question_id}/${data.object_id}`}>