mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (UI) Fix search sorting by empty categories
This commit is contained in:
@@ -144,7 +144,7 @@ export const defaultState = {
|
||||
},
|
||||
|
||||
category: function(item) {
|
||||
if (item.categories.length > 0) {
|
||||
if (item.categories !== undefined && item.categories.length > 0) {
|
||||
const sortedCats = item.categories.filter((cat) => cat.name !== undefined).sort((c) => c.id);
|
||||
const firstCat = sortedCats[0];
|
||||
|
||||
|
Reference in New Issue
Block a user