Skip to content

Commit 76d77d5

Browse files
committed
fix: warning logic adjust
1 parent a8ed2b1 commit 76d77d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Table.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
469469
if (
470470
process.env.NODE_ENV !== 'production' &&
471471
typeof customizeScrollBody === 'function' &&
472+
hasData &&
472473
!fixHeader
473474
) {
474475
warning(false, '`components.body` with render props is only work on `scroll.y`.');

0 commit comments

Comments
 (0)