Skip to content
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

detail page url에서 /:id에 해당하는 id값이 없을경우 / 주소로 redirect하기 #5

Open
lhk3337 opened this issue Jan 19, 2023 · 0 comments
Assignees
Labels
bug Something isn't working Done issue resolve

Comments

@lhk3337
Copy link
Owner

lhk3337 commented Jan 19, 2023

detail page에서 해당하는 id값(해당 db tweet의 id)이 없을 경우 null 데이터를 반환.

잘못된 id id가 있을 경우

id값을 잘못 입력했을때 api에서 받아오는 데이터 tweet 타입이 null형태로 받아옴

변경 전 변경 후

해결

api애서 id값이 없으면 데이터를 반환하지 않도록 조건문을 사용하여 해결.

ezgif com-gif-maker

@lhk3337 lhk3337 added bug Something isn't working Done issue resolve labels Jan 19, 2023
@lhk3337 lhk3337 self-assigned this Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Done issue resolve
Projects
None yet
Development

No branches or pull requests

1 participant