Ensure we’re setting the model object’s properties

This commit is contained in:
Angelo Stavrow 2020-12-08 15:08:49 -05:00
parent 246d3948a9
commit c826806bc1
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -104,9 +104,9 @@ struct PostListView: View {
}
.onDisappear {
DispatchQueue.main.async {
model.selectedCollection = nil
model.showAllPosts = true
model.selectedPost = nil
self.model.selectedCollection = nil
self.model.showAllPosts = true
self.model.selectedPost = nil
}
}
.navigationTitle(