mirror of
https://github.com/Radarr/Radarr
synced 2026-05-08 18:51:20 +02:00
Fixed: Return null if no height on discover/list grid
This commit is contained in:
parent
2b518ded37
commit
386315ad27
2 changed files with 8 additions and 0 deletions
|
|
@ -204,6 +204,10 @@ class AddListMovieOverviews extends Component {
|
|||
scrollElement={isSmallScreen ? undefined : scroller}
|
||||
>
|
||||
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
||||
if (!height) {
|
||||
return <div />;
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref={registerChild}>
|
||||
<Grid
|
||||
|
|
|
|||
|
|
@ -252,6 +252,10 @@ class AddListMoviePosters extends Component {
|
|||
scrollElement={isSmallScreen ? undefined : scroller}
|
||||
>
|
||||
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
||||
if (!height) {
|
||||
return <div />;
|
||||
}
|
||||
|
||||
return (
|
||||
<div ref={registerChild}>
|
||||
<Grid
|
||||
|
|
|
|||
Loading…
Reference in a new issue