mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
Fixed: (UI) Check for non-array indexerUrls
This commit is contained in:
parent
8b898733ab
commit
3a52048dc2
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ class IndexerIndexRow extends Component {
|
|||
isIndexerInfoModalOpen
|
||||
} = this.state;
|
||||
|
||||
const baseUrl = fields.find((field) => field.name === 'baseUrl')?.value ?? indexerUrls[0];
|
||||
const baseUrl = fields.find((field) => field.name === 'baseUrl')?.value ?? Array.isArray(indexerUrls) ? indexerUrls[0] : undefined;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
@ -248,7 +248,7 @@ class IndexerIndexRow extends Component {
|
|||
/>
|
||||
|
||||
{
|
||||
indexerUrls ?
|
||||
baseUrl ?
|
||||
<IconButton
|
||||
className={styles.externalLink}
|
||||
name={icons.EXTERNAL_LINK}
|
||||
|
|
|
|||
Loading…
Reference in a new issue