Skip to content

Commit

Permalink
fixed redundant iteration over sets to initiliaze
Browse files Browse the repository at this point in the history
  • Loading branch information
fde31 committed Jan 3, 2025
1 parent a51a324 commit a2d25b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/reducers/sets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ export const sets = (state: SetState = {
...state,
sets: ImmuMap<GraphSetRecord["id"], GraphSetRecord>().withMutations(map => {
sets.forEach(s => map.set(s.id, s));
for (const set of sets) {
map.set(set.id, set)
}
})
};
}
Expand Down

0 comments on commit a2d25b3

Please sign in to comment.