Skip to content

Commit ce1ea18

Browse files
committed
fix logic with if logic
1 parent 82f5a4c commit ce1ea18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/tableV2/hooks/useInfiniteScroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const useIniniteScroll = ({
131131
}
132132

133133
useScrollListener(target, () => {
134-
if (loading || service) return
134+
if (loading || !service) return
135135
scrollMethod()
136136
})
137137
}

0 commit comments

Comments
 (0)