Skip to content

Commit fe0d696

Browse files
committed
Fix node test
1 parent d9063f6 commit fe0d696

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/utils/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export function getColumnWidthForMeasurement<R, SR>(
2929
const widthWithUnit = typeof width === 'number' ? `${width}px` : width;
3030

3131
// don't break in Node.js (SSR) and jsdom
32-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
33-
if (CSS == null) {
32+
if (typeof CSS === 'undefined') {
3433
return widthWithUnit;
3534
}
3635

0 commit comments

Comments
 (0)