mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
Fixed: Return null if no height on discover/list grid
This commit is contained in:
parent
2b518ded37
commit
386315ad27
@ -204,6 +204,10 @@ class AddListMovieOverviews extends Component {
|
|||||||
scrollElement={isSmallScreen ? undefined : scroller}
|
scrollElement={isSmallScreen ? undefined : scroller}
|
||||||
>
|
>
|
||||||
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
||||||
|
if (!height) {
|
||||||
|
return <div />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={registerChild}>
|
<div ref={registerChild}>
|
||||||
<Grid
|
<Grid
|
||||||
|
@ -252,6 +252,10 @@ class AddListMoviePosters extends Component {
|
|||||||
scrollElement={isSmallScreen ? undefined : scroller}
|
scrollElement={isSmallScreen ? undefined : scroller}
|
||||||
>
|
>
|
||||||
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
{({ height, registerChild, onChildScroll, scrollTop }) => {
|
||||||
|
if (!height) {
|
||||||
|
return <div />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={registerChild}>
|
<div ref={registerChild}>
|
||||||
<Grid
|
<Grid
|
||||||
|
Loading…
Reference in New Issue
Block a user