Web: Files: fixed InfiniteLoaderComponent height

This commit is contained in:
Nikita Gopienko 2022-08-30 15:41:09 +03:00
parent a786e19afa
commit db4e491ea9

View File

@ -18,9 +18,9 @@ const InfiniteLoaderComponent = (props) => {
}
return viewAs === "tile" ? (
<GridComponent scroll={scroll} {...props} />
<GridComponent scroll={scroll ?? window} {...props} />
) : (
<ListComponent scroll={scroll} {...props} />
<ListComponent scroll={scroll ?? window} {...props} />
);
};
InfiniteLoaderComponent.propTypes = {