Add coaster-specific fields

This commit is contained in:
gpt-engineer-app[bot]
2025-10-30 12:35:48 +00:00
parent 8795e756ce
commit 05217b00d4
8 changed files with 192 additions and 31 deletions

View File

@@ -182,7 +182,8 @@ export default function Rides() {
// Track material filter
if (filters.trackMaterials.length > 0) {
if (!ride.track_material || !filters.trackMaterials.includes(ride.track_material)) {
if (!ride.track_material || ride.track_material.length === 0 ||
!ride.track_material.some(material => filters.trackMaterials.includes(material))) {
return false;
}
}