mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-28 10:46:59 -05:00
Fix null safety issues
This commit is contained in:
@@ -22,6 +22,9 @@ export function RichRideDisplay({ data, actionType, showAllFields = true }: Rich
|
||||
const [showTechnical, setShowTechnical] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
// Guard against null/undefined data
|
||||
if (!data) return;
|
||||
|
||||
const fetchRelatedData = async () => {
|
||||
if (data.park_id) {
|
||||
const { data: parkData } = await supabase
|
||||
|
||||
Reference in New Issue
Block a user