Skip to content

Commit

Permalink
fix build issue really
Browse files Browse the repository at this point in the history
  • Loading branch information
markdavella committed Mar 7, 2024
1 parent 6e2e95f commit ed82afb
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions web/src/components/channel_config/ProgrammingSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,28 +296,7 @@ export default function ProgrammingSelector() {
</Select>
</FormControl>
)}
{plexServers?.length === 0 && (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
m: 4,
}}
>
<Typography align="center" variant="h6">
No Plex Servers connected
</Typography>
<Button
variant="contained"
to="/settings/plex"
component={Link}
sx={{ margin: '0 auto' }}
startIcon={<AddCircle />}
>
Add Your Plex Server
</Button>
</Box>
)}

{!isNil(directoryChildren) &&
directoryChildren.size > 0 &&
selectedLibrary && (
Expand Down Expand Up @@ -388,7 +367,28 @@ export default function ProgrammingSelector() {
</Stack>
</>
)}
{selectedServer && (
{plexServers?.length === 0 ? (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
m: 4,
}}
>
<Typography align="center" variant="h6">
No Plex Servers connected
</Typography>
<Button
variant="contained"
to="/settings/plex"
component={Link}
sx={{ margin: '0 auto' }}
startIcon={<AddCircle />}
>
Add Your Plex Server
</Button>
</Box>
) : (
<>
<LinearProgress
sx={{ visibility: searchLoading ? 'visible' : 'hidden' }}
Expand All @@ -406,7 +406,7 @@ export default function ProgrammingSelector() {
justifyContent: 'space-between',
}}
>
renderListItems()
{renderListItems()}
<div style={{ height: 40 }} ref={ref}></div>
</List>

Expand Down

0 comments on commit ed82afb

Please sign in to comment.