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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user