From 42da48d31b72e60f47df10ec8eedffabb867ac88 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 3 Jun 2025 11:47:15 +0200 Subject: [PATCH] fix regression --- LeStorage/StoredCollection.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index 56c3bf0..cf44ee7 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -200,6 +200,7 @@ public class StoredCollection: SomeCollection { /// Sets a collection of items and indexes them func setItems(_ items: [T]) { + self.items.removeAll() for item in items { self.addItem(instance: item) }