Skip to content

Commit 779d689

Browse files
livthomasMikeRyanDev
authored andcommitted
fix(Entity): Properly iterate over array in upsert (#802)
1 parent d537758 commit 779d689

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/entity/src/unsorted_state_adapter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ export function createUnsortedStateAdapter<T>(selectId: IdSelector<T>): any {
132132
const added: T[] = [];
133133
const updated: any[] = [];
134134

135-
for (let index in updates) {
136-
const update = updates[index];
135+
for (const update of updates) {
137136
if (update.id in state.entities) {
138137
updated.push(update);
139138
} else {

0 commit comments

Comments
 (0)