@ -66,9 +66,9 @@ const Datasets = ({
useEffect(() => {
const onScroll = debounce(() => {
if (!loadingStateRef.current) {
if (!loadingStateRef.current && containerRef.current && anchorRef.current) {
const { scrollTop, clientHeight } = containerRef.current!
const anchorOffset = anchorRef.current!.offsetTop
const anchorOffset = anchorRef.current.offsetTop
if (anchorOffset - scrollTop - clientHeight < 100)
setSize(size => size + 1)
}