Skip to content

Commit

Permalink
Merge pull request #273 from windrunner21/210-fix-dashboard-view-even…
Browse files Browse the repository at this point in the history
…ts-arent-loading-on-the-first-load
  • Loading branch information
mikaelacaron authored Nov 29, 2023
2 parents 597616c + 68ea954 commit 25acad7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ struct DashboardView: View {
@Environment(ActionService.self) var actionService
@Environment(\.scenePhase) var scenePhase
@State private var isShowingAddView = false
@Bindable private var viewModel: DashboardViewModel
@State private var viewModel: DashboardViewModel
@State private var isShowingEditView = false
@State private var selectedMaintenanceEvent: MaintenanceEvent?

init(userUID: String?) {
viewModel = DashboardViewModel(userUID: userUID)
_viewModel = State(initialValue: DashboardViewModel(userUID: userUID))
}

private var eventDateFormat: DateFormatter = {
Expand Down

0 comments on commit 25acad7

Please sign in to comment.