mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
allow empty catergories on indexer search
This commit is contained in:
parent
725f738ee1
commit
dd3c9c268e
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|||
import React from 'react';
|
||||
import Label from 'Components/Label';
|
||||
|
||||
function CategoryLabel({ categories }) {
|
||||
function CategoryLabel({ categories = [] }) {
|
||||
const sortedCategories = categories.filter((cat) => cat.name !== undefined).sort((c) => c.id);
|
||||
|
||||
return (
|
||||
|
@ -21,7 +21,7 @@ function CategoryLabel({ categories }) {
|
|||
}
|
||||
|
||||
CategoryLabel.propTypes = {
|
||||
categories: PropTypes.arrayOf(PropTypes.object).isRequired
|
||||
categories: PropTypes.arrayOf(PropTypes.object)
|
||||
};
|
||||
|
||||
export default CategoryLabel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue