Fix composite submission RPC

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 22:49:39 +00:00
parent 2a287b0d48
commit c15efd7907
2 changed files with 186 additions and 1 deletions

View File

@@ -63,7 +63,8 @@ export function RichRideDisplay({ data, actionType, showAllFields = true }: Rich
fetchRelatedData();
}, [data.park_id, data.manufacturer_id, data.designer_id, data.ride_model_id]);
const getStatusColor = (status: string) => {
const getStatusColor = (status: string | undefined) => {
if (!status) return 'bg-gray-500';
switch (status.toLowerCase()) {
case 'operating': return 'bg-green-500';
case 'closed': return 'bg-red-500';