diff --git a/frontend/src/api/dto/channel.dto.ts b/frontend/src/api/dto/channel.dto.ts index 58150eeb..4cd1031b 100644 --- a/frontend/src/api/dto/channel.dto.ts +++ b/frontend/src/api/dto/channel.dto.ts @@ -1,4 +1,12 @@ export class locationEntity { + title: string | undefined; + + lat: number | undefined; + + lng: number | undefined; +} + +export class pathLocationEntity { lat: number | undefined; lng: number | undefined; @@ -15,7 +23,7 @@ export class guestEntity { end_location: locationEntity | undefined; - path: locationEntity[] | undefined; + path: pathLocationEntity[] | undefined; marker_style: guestMarkerStyleEntity | undefined; } diff --git a/frontend/src/component/routebutton/RouteResultButton.tsx b/frontend/src/component/routebutton/RouteResultButton.tsx index 59cf11e7..f064f030 100644 --- a/frontend/src/component/routebutton/RouteResultButton.tsx +++ b/frontend/src/component/routebutton/RouteResultButton.tsx @@ -29,7 +29,7 @@ export const RouteResultButton = (props: IRouteResultButtonProps) => { )} >
- {props.user.end_location.title} + {props.user.start_location.title}
diff --git a/frontend/src/component/searchbox/SearchBox.tsx b/frontend/src/component/searchbox/SearchBox.tsx index 95fd8a4b..8d5d85a8 100644 --- a/frontend/src/component/searchbox/SearchBox.tsx +++ b/frontend/src/component/searchbox/SearchBox.tsx @@ -79,7 +79,6 @@ export const SearchBox = (props: ISearchBoxProps) => { lat: parseFloat(item.mapy) / 1e7, lng: parseFloat(item.mapx) / 1e7, })); - console.log(data); setSearchResults(formattedResults); // 검색 결과 상태 업데이트 } catch (err) { setError(err instanceof Error ? err.message : '알 수 없는 오류'); @@ -177,7 +176,7 @@ export const SearchBox = (props: ISearchBoxProps) => { {searchResults.map(result => (