diff --git a/Model/Store.swift b/Model/Store.swift index 3f27eadc..67e0eee8 100644 --- a/Model/Store.swift +++ b/Model/Store.swift @@ -20,16 +20,10 @@ final class Store: ResourceObserver, ObservableObject { } func replace(_ items: Data) { - // Ensure the change happens on the main thread - DispatchQueue.main.async { - self.all = items - } + all = items } func clear() { - // Ensure clearing happens on the main thread - DispatchQueue.main.async { - self.all = nil - } + all = nil } }