From 4fc62c55e21516901fc7024f5194855ed16ed951 Mon Sep 17 00:00:00 2001 From: monoid Date: Tue, 14 Nov 2023 17:59:25 +0900 Subject: [PATCH] feat: add artist tag link --- src/client/component/contentinfo.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/component/contentinfo.tsx b/src/client/component/contentinfo.tsx index 41e4f56..8f699b9 100644 --- a/src/client/component/contentinfo.tsx +++ b/src/client/component/contentinfo.tsx @@ -177,7 +177,11 @@ function ComicDetailTag(prop: { {key} - {tagTable[key].length !== 0 ? tagTable[key].join(", ") : "N/A"} + {tagTable[key].length !== 0 ? tagTable[key].map((elem, i)=>{ + return <> + {elem} + {(i < tagTable[key].length - 1) ? ',' : ''} + }) : "N/A"} ))}