-
Notifications
You must be signed in to change notification settings - Fork 6
Fix: 리스트 생성,수정 오류 수정 #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: 리스트 생성,수정 오류 수정 #292
Conversation
|
@seoyoung-min is attempting to deploy a commit to the Eujin Ahn's projects Team on Vercel. A member of the Team first needs to authorize it. |
ParkSohyunee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서영님!! 오류를 완벽하게 수정해주셨군요!👍👍 고생많으셨습니다~! LGTM✨✨🥰🥰💕
src/app/list/[listId]/edit/page.tsx
Outdated
| //데이터 채워넣기 | ||
| useEffect(() => { | ||
| initializeFormValues(); | ||
| }, [listDetailData, categories, user.id]); //gpt: 여기 dependency list에 빼야할 게 있을까? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤣🤣 서영님의 고군분투 흔적이 보이네용 👍👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으악 들켰다!! 이거 지우고 머지하겠습니다 ㅋㅋㅋㅋㅋㅋ
| flexShrink: 0, | ||
| }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍
| useEffect(() => { | ||
| //---주소에서 title, category 가져오기 | ||
| const title = searchParams?.get('title'); | ||
| const category = searchParams?.get('category'); | ||
| /**TODO: 리스트 상세 '이 타이틀로 리스트 생성에도 encode단계 넣어주기 */ | ||
|
|
||
| if (title) setValue('title', title); | ||
| if (category) { | ||
| setValue('category', categories?.find((c) => c.korName === category)?.engName); | ||
| } | ||
| }, [searchParams, categories]); | ||
|
|
||
| return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서영님, 궁금한 점이 있습니다!
- 주제, 타이틀 인코딩해서 쿼리파라미터로 보내주면 StepOne에서 받을때 디코딩하는 과정이 있나요? 찾아보니 decodeURIComponent 함수도 있는것 같아서요,, 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ParkSohyunee 원래는 말씀해주신 decodeURIComponent 사용해 받으려고 했는데, 인코딩 단계만 추가해주니 디코딩 단계 없이도 충분히 잘 인식이 되더라고요!! 그래서 따로 추가하지는 않았습니다~!
* Fix: step2 순위뱃지, 타이틀인풋 UI 깨짐 수정 * Design: ItemAccordion hr선 색상 변경 * Feat: 요청 주제 클릭 시 자동 제목 입력 추가 * Fix: 리스트 수정 게시 불가 오류 해결 - 의존성 제거 * Chore: 불필요 코멘트 삭제 * Chore: 불필요 주석 삭제
개요
작업 사항
참고 사항 (optional)
관련 이슈 (optional)
리뷰어에게