mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 12:31:13 -05:00
Implement strict type enforcement plan
This commit is contained in:
@@ -75,7 +75,7 @@ export function ListDisplay({ list }: ListDisplayProps) {
|
||||
const getEntityUrl = (item: EnrichedListItem) => {
|
||||
if (!item.entity) return "#";
|
||||
|
||||
const entity = item.entity as any;
|
||||
const entity = item.entity as { slug?: string };
|
||||
|
||||
if (item.entity_type === "park") {
|
||||
return `/parks/${entity.slug}`;
|
||||
@@ -114,7 +114,7 @@ export function ListDisplay({ list }: ListDisplayProps) {
|
||||
to={getEntityUrl(item)}
|
||||
className="font-medium hover:underline"
|
||||
>
|
||||
{(item.entity as any).name}
|
||||
{(item.entity as { name?: string }).name || 'Unknown'}
|
||||
</Link>
|
||||
) : (
|
||||
<span className="font-medium text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user