Skip to content

Commit

Permalink
FE-82 🔀 피드 페이지 목록 중복 오류 수정 (#241)
Browse files Browse the repository at this point in the history
* FE-83 ✨ 피드 페이지 구현 (#164)

* FE-83 ✨ ui 구현 (sm 기준)

* FE-83 ✨ grid/sort 구분 구현

* FE-83 💄 더보기버튼 반응형 구현

* FE-83 ✨ FAB 버튼 적용

* FE-83 ✨ 에피그램 만들기 버튼 구현

* 🔧 피드페이지 오류 수정

---------

Co-authored-by: NEWJIN <[email protected]>
  • Loading branch information
jangmoonwon and newjinlee authored Aug 9, 2024
1 parent 450ec3c commit 06c7dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pageLayout/Feed/EpigramFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function EpigramFeed() {

useEffect(() => {
if (data) {
setEpigrams((prevEpigrams) => [...prevEpigrams, ...data.list]);
setEpigrams((prevEpigrams) => [...prevEpigrams, ...data.list.filter((epigram) => !new Set(prevEpigrams.map((e) => e.id)).has(epigram.id))]);
if (data.list.length > 0) {
setCursor(data.list[data.list.length - 1].id);
}
Expand Down

0 comments on commit 06c7dff

Please sign in to comment.