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) }