Fix composite submission data linkage

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 22:49:01 +00:00
parent 87626dd2d8
commit 2a287b0d48

View File

@@ -52,7 +52,8 @@ export function RichParkDisplay({ data, actionType, showAllFields = true }: Rich
fetchRelatedData();
}, [data.location_id, data.operator_id, data.property_owner_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';