mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 15:11:12 -05:00
Fix search to use slugs
This commit is contained in:
@@ -109,6 +109,7 @@ export function useSearch(options: UseSearchOptions = {}) {
|
||||
subtitle: `at ${ride.park?.name || 'Unknown Park'}`,
|
||||
image: ride.image_url,
|
||||
rating: ride.average_rating,
|
||||
slug: ride.slug,
|
||||
data: ride
|
||||
});
|
||||
});
|
||||
@@ -129,6 +130,7 @@ export function useSearch(options: UseSearchOptions = {}) {
|
||||
title: company.name,
|
||||
subtitle: company.company_type?.replace('_', ' ').replace(/\b\w/g, l => l.toUpperCase()) || 'Company',
|
||||
image: company.logo_url,
|
||||
slug: company.slug,
|
||||
data: company
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user