mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-16 05:24:34 +01:00
Fixed: (UI) Fix search sorting by empty categories
This commit is contained in:
parent
b7fcdb5356
commit
f638cf34d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue