From a8420ac33cacb669a9b577a601cdf85e2b573c9f Mon Sep 17 00:00:00 2001 From: hjlarry Date: Thu, 25 Sep 2025 09:52:08 +0800 Subject: [PATCH] add fragment to prevent list missing key --- web/app/components/workflow/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index 25ac8ad2a4c..d1b026a0d63 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -2,6 +2,7 @@ import type { FC } from 'react' import { + Fragment, memo, useCallback, useEffect, @@ -457,7 +458,7 @@ export const Workflow: FC = memo(({ const canGoPrev = index > 0 const canGoNext = index < comments.length - 1 return ( - <> + = memo(({ canGoPrev={canGoPrev} canGoNext={canGoNext} /> - + ) }