From 22b1f972447ef2d5152bb0a30b657ecb5bca7a1e Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 13 May 2024 16:17:23 +0800 Subject: [PATCH] fix: map key --- src/renderer/src/components/follow/form.tsx | 43 +++++++++++---------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/renderer/src/components/follow/form.tsx b/src/renderer/src/components/follow/form.tsx index 7f94a991c..35772cfcf 100644 --- a/src/renderer/src/components/follow/form.tsx +++ b/src/renderer/src/components/follow/form.tsx @@ -149,27 +149,30 @@ export function FollowForm({ type }: { type: string }) { {!!item.entries?.length && (
- {item.entries.map((entry) => ( - - {entry?.images?.[0] ? ( - - ) : ( -
- {entry?.title} + {item.entries + .filter((e) => !!e) + .map((entry) => ( + + {entry.images?.[0] ? ( + + ) : ( +
+ {entry.title} +
+ )} +
+ {entry.title}
- )} -
- {entry?.title} -
-
- ))} + + ))}
)}