1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

Don't mutate state when sorting items

This commit is contained in:
ta264
2020-02-19 21:44:36 +00:00
committed by Mark McDowall
parent dd8d1b673e
commit 283f905d79
16 changed files with 52 additions and 48 deletions
@@ -11,7 +11,7 @@ function createMapStateToProps() {
createAllSeriesSelector(),
(items) => {
return {
items: items.sort((a, b) => {
items: [...items].sort((a, b) => {
if (a.sortTitle < b.sortTitle) {
return -1;
}