Web: Components: fixed InfiniteLoaderComponent crash
This commit is contained in:
parent
a8e5175b57
commit
a786e19afa
@ -12,8 +12,10 @@ const InfiniteLoaderComponent = (props) => {
|
|||||||
? document.querySelector("#customScrollBar > .scroll-body")
|
? document.querySelector("#customScrollBar > .scroll-body")
|
||||||
: document.querySelector("#sectionScroll > .scroll-body");
|
: document.querySelector("#sectionScroll > .scroll-body");
|
||||||
|
|
||||||
if (viewAs === "row" && scroll) scroll.style.paddingRight = 0;
|
if (scroll) {
|
||||||
else scroll.style.paddingRight = isMobile() ? "8px" : "17px";
|
if (viewAs === "row") scroll.style.paddingRight = 0;
|
||||||
|
else scroll.style.paddingRight = isMobile() ? "8px" : "17px";
|
||||||
|
}
|
||||||
|
|
||||||
return viewAs === "tile" ? (
|
return viewAs === "tile" ? (
|
||||||
<GridComponent scroll={scroll} {...props} />
|
<GridComponent scroll={scroll} {...props} />
|
||||||
|
Loading…
Reference in New Issue
Block a user