Skip to content

Deploy#4

Merged
UchihaIthachi merged 33 commits intomainfrom
deploy
Jun 12, 2025
Merged

Deploy#4
UchihaIthachi merged 33 commits intomainfrom
deploy

Conversation

@UchihaIthachi
Copy link
Member

No description provided.

UchihaIthachi and others added 30 commits June 12, 2025 12:43
The 'HorizontalScrollBar' component expects 'cardData' with a 'vicinity' property of type 'string'.
The 'relatedPlaces' data, of type 'PlaceDetails[]', had 'vicinity' as 'string | undefined'.

This commit modifies 'src/app/(main)/place/[placeId]/page.tsx' to map over 'relatedPlaces' before passing it to 'HorizontalScrollBar'.
If 'place.vicinity' is undefined, it now defaults to an empty string (""), ensuring compatibility with the expected 'LocationDetail[]' type and resolving the build error.
Fix: Resolve type error in PlaceDetailPage
@UchihaIthachi UchihaIthachi reopened this Jun 12, 2025
@UchihaIthachi UchihaIthachi merged commit 8f56f25 into main Jun 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant