You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/08/15 02:53:56 UTC
(answer-plugins) branch feat/1.7.0/quicklinks updated: fix: add key attribute
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 7cf360a fix: add key attribute
7cf360a is described below
commit 7cf360a3364ce023ab2b2af989b0346d27adf18f
Author: shuai <li...@sifou.com>
AuthorDate: Fri Aug 15 10:53:45 2025 +0800
fix: add key attribute
---
quick-links/Component.tsx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/quick-links/Component.tsx b/quick-links/Component.tsx
index 6f4365f..d90da1d 100644
--- a/quick-links/Component.tsx
+++ b/quick-links/Component.tsx
@@ -59,6 +59,7 @@ const Component = ({ navigate, request }) => {
return (
<a
href={href}
+ key={href}
className={`nav-link ${window.location.pathname === href ? 'active' : ''}`}
onClick={handleNavigate}>
<span>{tag.display_name}</span>
@@ -75,6 +76,7 @@ const Component = ({ navigate, request }) => {
return (
<a
href={url}
+ key={url}
className={`nav-link ${window.location.pathname === url ? 'active' : ''}`}
onClick={handleNavigate}
>