Skip to content

Commit a0804b5

Browse files
committed
fix: fix
1 parent 61ed10f commit a0804b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ function Table<RecordType extends DefaultRecordType>(
527527
React.useEffect(() => {
528528
if (!tailor || !useInternalHooks) {
529529
if (scrollBodyRef.current instanceof Element) {
530-
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current)?.width);
530+
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current).width);
531531
} else {
532-
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current)?.width);
532+
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current).width);
533533
}
534534
}
535535
setSupportSticky(isStyleSupport('position', 'sticky'));

0 commit comments

Comments
 (0)