Skip to content

Commit

Permalink
By default select a vehicle when adding a maintenance event
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelacaron committed Nov 24, 2023
1 parent bd51b19 commit 7b4f17f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ struct AddMaintenanceView: View {
.analyticsView("\(Self.self)")
.navigationTitle(Text("Add Maintenance",
comment: "Nagivation title for Add Maintenance view"))
.onAppear {
if !vehicles.isEmpty {
selectedVehicleID = vehicles[0].id
}
}
.toolbar {
ToolbarItem {
Button {
Expand Down

0 comments on commit 7b4f17f

Please sign in to comment.