Fixed: Return null if no height on discover/list grid

This commit is contained in:
Qstick 2019-12-04 22:06:01 -05:00
parent 2b518ded37
commit 386315ad27
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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