From 541aa5e297834fd214de7b1c33a4402d7c51caa8 Mon Sep 17 00:00:00 2001 From: Raz Date: Mon, 3 Mar 2025 17:43:41 +0100 Subject: [PATCH] fix loadDataFromServerIfAllowed --- LeStorage/StoredCollection.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index 79d840c..dab0f5a 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -202,10 +202,10 @@ public class StoredCollection: RandomAccessCollection, SomeCollecti self._addOrUpdate(contentOfs: items, shouldSync: false) } } + self._setAsLoaded() } catch { Logger.error(error) } - self._setAsLoaded() } /// Loads the collection using the server data only if the collection file doesn't exists