Fix search to use slugs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 20:12:12 +00:00
parent 0dc9d3adb2
commit 14ab8a72d6
2 changed files with 31 additions and 2 deletions

View File

@@ -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
});
});