Skip to content

Commit 809df0a

Browse files
committed
Neo.data.Store: set data #308
1 parent c0aca8c commit 809df0a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/data/Store.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ class Store extends Base {
167167
value = [value];
168168
}
169169

170+
// todo: add a config to make the cloning optional
171+
value = Neo.clone(value, true);
172+
170173
value.forEach((key, index) => {
171174
if (!RecordFactory.isRecord(key)) {
172175
value[index] = RecordFactory.createRecord(me.model, key);

0 commit comments

Comments
 (0)