Skip to content

EventDetail/PhotographerDetail: id가 NaN일 때 API 호출 실패 처리 없음 #55

Description

@seorinn

이슈 내용

EventDetail, PhotographerDetail에서 const { id } = useParams()Number(id)를 API에 전달합니다. URL이 숫자가 아닌 경우 Number(id)가 NaN이 되어 API 호출이 실패합니다.

수정 방향

if (!id || isNaN(Number(id))) { navigation('/'); return; } 가드 추가

Notion: TA-232

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions