Skip to content
Snippets Groups Projects
Commit c8ba4b94 authored by Tormod Mork Müller's avatar Tormod Mork Müller :computer:
Browse files

Fixed bug where the project list always loaded over again on entering view...

Fixed bug where the project list always loaded over again on entering view even though the list was up-to-date and it did not fetch data.
parent b56fb115
No related branches found
No related tags found
1 merge request!118Fixed bug where the project list always loaded over again on entering view...
......@@ -132,10 +132,12 @@ struct ProjectListView: View {
}
.task {
/// On first time opening --> Load in project data
if projects.isEmpty {
await projectData.loadData { (projects) in
self.projects = projects
}
}
}
.sheet(isPresented: $showFilterModalView,
onDismiss: didDismiss) {
/// Modal View for filtering projects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment