From c826806bc1876f481f5cd41638f3c86c62f31533 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Tue, 8 Dec 2020 15:08:49 -0500 Subject: [PATCH] =?UTF-8?q?Ensure=20we=E2=80=99re=20setting=20the=20model?= =?UTF-8?q?=20object=E2=80=99s=20properties?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/PostList/PostListView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/PostList/PostListView.swift b/Shared/PostList/PostListView.swift index 5413e88..8199e17 100644 --- a/Shared/PostList/PostListView.swift +++ b/Shared/PostList/PostListView.swift @@ -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(