mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-20 01:59:50 +00:00
fix: only fetch SD countries and lineups when source type is schedules_direct
This commit is contained in:
parent
b236c965eb
commit
aa27fcc362
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ const SDLineupManager = ({ sourceId }) => {
|
|||
}, [sourceId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (sourceId) {
|
||||
if (sourceId && sourceType === 'schedules_direct') {
|
||||
fetchActiveLineups();
|
||||
// Fetch country list from SD API per their recommendation to not hardcode
|
||||
fetch('https://json.schedulesdirect.org/20141201/available/countries')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue