Skip to content

[Fix] 피드, 프로젝트 검색 결과 표시안되는 문제 해결#175

Merged
JaeHye0k merged 1 commit intomainfrom
hotfix
Mar 29, 2025
Merged

[Fix] 피드, 프로젝트 검색 결과 표시안되는 문제 해결#175
JaeHye0k merged 1 commit intomainfrom
hotfix

Conversation

@JaeHye0k
Copy link
Copy Markdown
Contributor

📝작업 내용

  • 피드, 프로젝트 검색 결과 표시안되는 문제 해결

원인

  • <SearchResultItem> 컴포넌트에서 data props 의 items 속성을 사용해서 검색 결과 리스트를 보여주는데, 이 data props에 전달하는 feedsprojects 객체에 items 속성이 없어서 items 가 undefined 가 됨.

해결방법

  • before
 const feeds = { ...data?.feedResult };
 const hubs = { ...data?.projectResult };
  • after
const feeds = {
  items: data?.feedResult.feeds,
  hasMore: data?.feedResult.hasMore,
};
const hubs = {
  items: data?.projectResult.projects,
  hasMore: data?.projectResult.hasMore,
};

Copy link
Copy Markdown
Member

@chaeyun-sim chaeyun-sim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니닷

@JaeHye0k JaeHye0k merged commit b9a8f3a into main Mar 29, 2025
1 check passed
@JaeHye0k JaeHye0k deleted the hotfix branch March 29, 2025 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants