fix: Avoid null scrollLeft in VirtualTable (#34545)

This commit is contained in:
Vitor Avila
2025-08-05 09:25:47 -03:00
committed by GitHub
parent 49689eec6c
commit 407fb67f1e

View File

@@ -132,7 +132,7 @@ const VirtualTable = <RecordType extends object>(
if (gridRef.current) {
return gridRef.current?.state?.scrollLeft;
}
return null;
return 0;
},
set: (scrollLeft: number) => {
if (gridRef.current) {