minor performance improvement... and makes rust happy :-)

This commit is contained in:
Philipp Hofer 2025-04-06 23:02:32 +02:00
parent 9277d5fbaa
commit 2bac41d641

View File

@ -180,7 +180,7 @@ async fn view(State(db): State<Arc<SqlitePool>>, session: Session, axum::extract
"Um einen Standort zu wählen, auf einen Punkt in der Karte klicken"
}
}
@if let (Some(_), Some(_)) = (station.lat, station.lng) {
@if station.lat.is_some() && station.lng.is_some() {
a href=(format!("/station/{}/location-clear", station.id))
onclick="return confirm('Bist du sicher, dass du den Standort der Station löschen willst? Das kann _NICHT_ mehr rückgängig gemacht werden.');"{
"Standort löschen"