From 13382270d5eea4c7e112ce92e5c77c1553beb617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Sat, 31 Aug 2024 02:50:56 +0200 Subject: [PATCH] Revert "fixed some potential crashes" This reverts commit bde9aade1173a8a466e3d54e2adc39bea49efe97. --- Model/Store.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 } }