Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/5cffb10e08d27e7cf73edb277ee071531e6ddf04
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
18 additions and
2 deletions
@ -1,10 +1,22 @@
import PropTypes from 'prop-types' ;
import React from 'react' ;
import Label from 'Components/Label' ;
import { kinds , tooltipPositions } from 'Helpers/Props' ;
import Tooltip from '../../Components/Tooltip/Tooltip' ;
function CategoryLabel ( { categories = [ ] } ) {
function CategoryLabel ( { categories } ) {
const sortedCategories = categories . filter ( ( cat ) => cat . name !== undefined ) . sort ( ( c ) => c . id ) ;
if ( categories ? . length === 0 ) {
return (
< Tooltip
anchor = { < Label kind = { kinds . DANGER } > Unknown < / L a b e l > }
tooltip = "Please report this issue to the GitHub as this shouldn't be happening"
position = { tooltipPositions . LEFT }
/ >
) ;
}
return (
< span >
{
@ -20,8 +32,12 @@ function CategoryLabel({ categories = [] }) {
) ;
}
CategoryLabel . defaultProps = {
categories : [ ]
} ;
CategoryLabel . propTypes = {
categories : PropTypes . arrayOf ( PropTypes . object )
categories : PropTypes . arrayOf ( PropTypes . object ) . isRequired
} ;
export default CategoryLabel ;