Skip to content

Commit

Permalink
fix: 모아보기 상태에서 핀 조회가 안되는 오류 수정 (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 authored Sep 30, 2023
1 parent 20011f0 commit 92ffa0e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions frontend/src/components/PinsOfTopic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TopicInfo from '../TopicInfo';

interface PinsOfTopicProps {
topicId: string;
idx: number;
topicDetail: TopicDetailProps;
setSelectedPinId: React.Dispatch<React.SetStateAction<number | null>>;
setIsEditPinDetail: React.Dispatch<React.SetStateAction<boolean>>;
Expand All @@ -14,7 +13,6 @@ interface PinsOfTopicProps {

const PinsOfTopic = ({
topicId,
idx,
topicDetail,
setSelectedPinId,
setIsEditPinDetail,
Expand All @@ -24,7 +22,6 @@ const PinsOfTopic = ({
<Wrapper>
<TopicInfo
topicId={topicId}
idx={idx}
topicImage={topicDetail.image}
topicTitle={topicDetail.name}
topicCreator={topicDetail.creator}
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/components/TopicInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import UpdatedTopicInfo from './UpdatedTopicInfo';

export interface TopicInfoProps {
topicId: string;
idx: number;
topicImage: string;
topicTitle: string;
topicCreator: string;
Expand All @@ -36,7 +35,6 @@ export interface TopicInfoProps {

const TopicInfo = ({
topicId,
idx,
topicImage,
topicTitle,
topicCreator,
Expand Down Expand Up @@ -150,7 +148,7 @@ const TopicInfo = ({
<ButtonsWrapper>
<AddSeeTogether
isInAtlas={isInAtlas}
id={Number(topicId.split(',')[idx])}
id={Number(topicId)}
getTopicsFromServer={setTopicsFromServer}
>
{isInAtlas ? (
Expand All @@ -162,7 +160,7 @@ const TopicInfo = ({
<Space size={5} />
<AddFavorite
isBookmarked={isBookmarked}
id={Number(topicId.split(',')[idx])}
id={Number(topicId)}
getTopicsFromServer={setTopicsFromServer}
>
{isBookmarked ? <FavoriteSVG /> : <FavoriteNotFilledSVG />}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/SelectedTopic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ const SelectedTopic = () => {
<Fragment key={topicDetail.id}>
<PinsOfTopic
topicId={topicId.split(',')[idx]}
idx={idx}
topicDetail={topicDetail}
setSelectedPinId={setSelectedPinId}
setIsEditPinDetail={setIsEditPinDetail}
Expand Down

0 comments on commit 92ffa0e

Please sign in to comment.