From e06787fb3f188ebb3224763b7806c76ac0da35f8 Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 18 Oct 2024 02:27:38 +0900 Subject: [PATCH] fix: key error --- packages/client/src/components/gallery/DescItem.tsx | 7 ++++--- packages/client/src/page/galleryPage.tsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/client/src/components/gallery/DescItem.tsx b/packages/client/src/components/gallery/DescItem.tsx index b6d12f5..f9d72c3 100644 --- a/packages/client/src/components/gallery/DescItem.tsx +++ b/packages/client/src/components/gallery/DescItem.tsx @@ -1,5 +1,6 @@ import StyledLink from "@/components/gallery/StyledLink"; import { cn } from "@/lib/utils"; +import { Fragment } from "react/jsx-runtime"; export function DescItem({ name, children, className }: { name: string; @@ -21,10 +22,10 @@ export function DescTagItem({ return {items.length === 0 ? "N/A" : items.map( (x, i) => - <> - {x} + + {x} {i + 1 < items.length && , } - + )} ; } diff --git a/packages/client/src/page/galleryPage.tsx b/packages/client/src/page/galleryPage.tsx index 8dc7b10..ceb52d2 100644 --- a/packages/client/src/page/galleryPage.tsx +++ b/packages/client/src/page/galleryPage.tsx @@ -65,7 +65,7 @@ export default function Gallery() { const isLoadingMore = data && size > 0 && (data[size - 1] === undefined); - return (
+ return (
{(word || tags) &&