This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new 58e9227 fix: builder error. (#292)
58e9227 is described below
commit 58e92271299bf2f0e69f360e646342298532dd55
Author: YuI <[email protected]>
AuthorDate: Thu Sep 23 14:38:18 2021 +0800
fix: builder error. (#292)
* add: wechat and qq's QR Code
* fix: the markdownline error
* fix: the markdownline error
* modift: Download button change into Github
* modift: Download markdown file name.
* add: new download page.
* modify: contributors add dashboard and website's developer.
* modify: download page.
* fix: builder error.
Co-authored-by: 艺铭 <[email protected]>
---
src/pages/download/VersionCard.tsx | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/pages/download/VersionCard.tsx
b/src/pages/download/VersionCard.tsx
index 9fff012..0323f8e 100644
--- a/src/pages/download/VersionCard.tsx
+++ b/src/pages/download/VersionCard.tsx
@@ -29,28 +29,28 @@ const VersionCard: React.FC<VersionCardProps> = ({ ...props
}) => {
</div>
<ul className={styles.downloadDetail}>
{
- props.content.map((value) => {
+ props.content instanceof Array &&
props.content.map((value) => {
return (
<li key={value.name}>
<span>
{value.name} :
</span>
- {value.zip &&
+ {value.zip &&
<a href={value.zip}>
ZIP
</a>
- }
- {value.tar &&
+ }
+ {value.tar &&
<a href={value.tar}>
TAR
</a>
- }
- <a href={value.asc}>
- ASC
- </a>
- <a href={value.sha512}>
- SHA512
- </a>
+ }
+ <a href={value.asc}>
+ ASC
+ </a>
+ <a href={value.sha512}>
+ SHA512
+ </a>
</li>
);
})