We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5de3728 commit 9ccacf2Copy full SHA for 9ccacf2
src/index.tsx
@@ -245,10 +245,10 @@ function renderTags(tags: Array<TagDescription>) {
245
.join("");
246
247
let children = tag.props.children;
248
- // check if children is an array of strings
249
- // in Server Side Rendering, strings are concatenated with comma which is not what we want
250
- // we should join them manually instead
251
- if (Array.isArray(children) && children.every(child => typeof child === "string")) {
+
+ if (Array.isArray(children)) {
+ // in JavaScript, strings are concatenated with comma which is not what we want
+ // we should join them manually instead
252
children = children.join("");
253
}
254
if (tag.setting?.close) {
0 commit comments