Ensure park and ride slugs are valid before displaying links

Prevents 500 errors by filtering out parks and rides with null or empty slugs from trending lists and excludes them from database queries where slugs are required. Additionally, it adds conditional rendering in templates to handle parks without slugs gracefully.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0bdea3fb-49ea-4863-b501-fa6f5af0cbf0
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-09-22 14:36:17 +00:00
parent 1a8171f918
commit 0ee6e8c820
6 changed files with 155 additions and 185 deletions

View File

@@ -54,10 +54,6 @@ outputType = "webview"
localPort = 5000
externalPort = 80
[[ports]]
localPort = 37689
externalPort = 3002
[[ports]]
localPort = 41923
externalPort = 3000