This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/dev by this push:
new aa75f445 feat(ui):hide related questions card when there is no content
aa75f445 is described below
commit aa75f4455dc1b399a6349f8a5ef222259c854619
Author: Dinesht04 <[email protected]>
AuthorDate: Thu Oct 2 00:40:14 2025 +0530
feat(ui):hide related questions card when there is no content
---
ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
b/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
index a8934436..19bf269d 100644
--- a/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
+++ b/ui/src/pages/Questions/Detail/components/RelatedQuestions/index.tsx
@@ -43,6 +43,10 @@ const Index: FC<Props> = ({ id }) => {
return null;
}
+ if (!isLoading && data?.count === 0) {
+ return null;
+ }
+
return (
<Card>
<Card.Header>{t('title')}</Card.Header>