Skip to content

Commit de612ef

Browse files
author
six-standard
committed
hotfix: id가 없을 경우 정상적으로 뷰가 렌더링되지 않는 이슈 해결
1 parent b4b25a2 commit de612ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/(auth-required)/main/Content.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ export const Content = () => {
108108
/>
109109
) : (
110110
joinedPosts?.map((item, index, array) => (
111-
<Section key={item.id} ref={index === array.length - 1 ? ref : undefined} {...item} />
111+
<Section
112+
key={item?.id ?? index}
113+
ref={index === array.length - 1 ? ref : undefined}
114+
{...item}
115+
/>
112116
))
113117
)}
114118
</div>

0 commit comments

Comments
 (0)