Skip to content

Commit

Permalink
Removed extraneous sort in sorted_state_adapter.ts#merge()
Browse files Browse the repository at this point in the history
Ran npm test and found no regressions

Co-authored-by: jmezzacappa <20446836+jmezzacappa@users.noreply.github.com>
  • Loading branch information
jaidetree and jmezzacappa committed Mar 29, 2021
1 parent 61ec24c commit f65238c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/entities/sorted_state_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ export function createSortedStateAdapter<T>(
}

function merge(models: T[], state: R): void {
models.sort(sort)

// Insert/overwrite all new/updated
models.forEach(model => {
state.entities[selectId(model)] = model
Expand Down

0 comments on commit f65238c

Please sign in to comment.