Moved the sheet from the task list view to the navigation split view inside the ContentView view in the app target to fix an issue that occurred when pressing that button from the task group list view.

This commit is contained in:
2026-02-12 05:04:46 +01:00
parent dd6f453466
commit 68bca572c1
+3 -3
View File
@@ -39,9 +39,6 @@ struct ContentView: View {
.newTaskButton(show: viewModel.showNewTaskButtonInDetails) { .newTaskButton(show: viewModel.showNewTaskButtonInDetails) {
viewModel.showNewTask() viewModel.showNewTask()
} }
.sheet(isPresented: $viewModel.newTaskShown) {
NewTaskView()
}
} }
else { else {
ContentUnavailableView( ContentUnavailableView(
@@ -51,6 +48,9 @@ struct ContentView: View {
) )
} }
} }
.sheet(isPresented: $viewModel.newTaskShown) {
NewTaskView()
}
} }
} }