Skip to content

Commit 9366944

Browse files
authored
fix(AnalyticalTable): don't use NaN as row height if CSS var is not yet defined (#4729)
1 parent 078d0fe commit 9366944

File tree

1 file changed

+1
-1
lines changed
  • packages/main/src/components/AnalyticalTable/util

1 file changed

+1
-1
lines changed

packages/main/src/components/AnalyticalTable/util/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function getRowHeight(rowHeight: number, tableRef: RefObject<any>) {
141141

142142
if (typeof document !== 'undefined') {
143143
return parseInt(
144-
getComputedStyle(tableRef.current ?? document.body).getPropertyValue('--sapWcrAnalyticalTableRowHeight') ?? '44'
144+
getComputedStyle(tableRef.current ?? document.body).getPropertyValue('--sapWcrAnalyticalTableRowHeight') || '44'
145145
);
146146
}
147147

0 commit comments

Comments
 (0)