This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer-plugins.git

commit 8e3d216af946d930a93293e03cf1e3b662da55b3
Author: shuai <[email protected]>
AuthorDate: Fri Aug 15 15:24:17 2025 +0800

    fix: quick-links plugin display logic optimization
---
 quick-links/Component.tsx   | 4 ++--
 quick-links/i18n/en_US.yaml | 2 +-
 quick-links/info.yaml       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/quick-links/Component.tsx b/quick-links/Component.tsx
index d90da1d..505107d 100644
--- a/quick-links/Component.tsx
+++ b/quick-links/Component.tsx
@@ -47,8 +47,8 @@ const Component = ({ navigate, request }) => {
     }
   }
 
-  if (!tags.length && !links.length) {
-    return
+  if (!tags.length && !data?.links_text) {
+    return null;
   }
 
   return (
diff --git a/quick-links/i18n/en_US.yaml b/quick-links/i18n/en_US.yaml
index 835aeaf..ac1a9d6 100644
--- a/quick-links/i18n/en_US.yaml
+++ b/quick-links/i18n/en_US.yaml
@@ -20,7 +20,7 @@ plugin:
     backend:
       info:
         name:
-          other: Quick Links
+          other: Quicklinks
         description:
           other: Customize the sidebar tags or links
       config:
diff --git a/quick-links/info.yaml b/quick-links/info.yaml
index 488ceaa..e21c561 100644
--- a/quick-links/info.yaml
+++ b/quick-links/info.yaml
@@ -17,6 +17,6 @@
 
 slug_name: quick_links
 type: sidebar
-version: 0.0.2
+version: 0.0.3
 author: answerdev
 link: https://github.com/apache/answer-plugins/tree/main/quick-links

Reply via email to