Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmrgv committed Jun 29, 2022
1 parent 5f3e780 commit 2da53a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.git
node_modules
/*.md
4 changes: 2 additions & 2 deletions src/InfiniteScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ class InfiniteScroll {

if (rowCount === undefined && (hasMore.down || hasMore.up))
console.warn(
`You provided props with "hasMore: { up: ${!!hasMore.up}, down: ${!!hasMore.down} } but "rowCount" is "undefined"`
`You provided props with "hasMore: { up: ${!!hasMore.up}, down: ${!!hasMore.down} }" but "rowCount" is "undefined"`
);

if (columnCount === undefined && (hasMore.left || hasMore.right))
console.warn(
`You provided props with "hasMore: { left: ${!!hasMore.left}, right: ${!!hasMore.right} } but "columnCount" is "undefined"`
`You provided props with "hasMore: { left: ${!!hasMore.left}, right: ${!!hasMore.right} }" but "columnCount" is "undefined"`
);

const { scrollTop, scrollLeft, scrollHeight, scrollWidth, clientHeight, clientWidth } = _scrollingContainerRef;
Expand Down

0 comments on commit 2da53a4

Please sign in to comment.