This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/1.7.0/quicklinks in repository https://gitbox.apache.org/repos/asf/answer-plugins.git
The following commit(s) were added to refs/heads/feat/1.7.0/quicklinks by this push: new c7a8fa7 fix: quick-links plugin display logic optimization c7a8fa7 is described below commit c7a8fa76c54ab7cc7892304e5933870db04ebed3 Author: shuai <lishuail...@sifou.com> 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