Skip to content

Commit

Permalink
Removed unnecessary sort in sorted_state_adapter.ts#merge() (#960)
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>

Co-authored-by: jmezzacappa <20446836+jmezzacappa@users.noreply.github.com>
  • Loading branch information
jaidetree and jmezzacappa committed Mar 29, 2021
1 parent 61ec24c commit 4462647
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 4462647

Please sign in to comment.