diff --git a/src/components/Table/components/Row.tsx b/src/components/Table/components/Row.tsx index 643acad74..5ed6c5590 100644 --- a/src/components/Table/components/Row.tsx +++ b/src/components/Table/components/Row.tsx @@ -146,12 +146,7 @@ function RowImpl(props: RowProps): ReactElement { onDragOver={(evt) => onDragOver?.(row, evt)} ref={ref} > - + {isKeptGroupRow ? ( ) : ( @@ -171,7 +166,8 @@ function RowImpl(props: RowProps): ReactElement { const numExpandedColumns = isExpanded ? tableState.numberOfExpandedChildren(maybeExpandedColumn.id) ? // Subtract 1 if the column is hidden on expand, since we're not rendering it. - tableState.numberOfExpandedChildren(maybeExpandedColumn.id) - (maybeExpandedColumn.hideOnExpand ? 1 : 0) + tableState.numberOfExpandedChildren(maybeExpandedColumn.id) - + (maybeExpandedColumn.hideOnExpand ? 1 : 0) : 0 : 0; @@ -263,7 +259,8 @@ function RowImpl(props: RowProps): ReactElement { maybeContent, ); - const maybeSticky = ((isGridCellContent(maybeContent) && maybeContent.sticky) || column.sticky) ?? undefined; + const maybeSticky = + ((isGridCellContent(maybeContent) && maybeContent.sticky) || column.sticky) ?? undefined; const maybeStickyColumnStyles = maybeSticky && columnSizes ? { @@ -282,7 +279,8 @@ function RowImpl(props: RowProps): ReactElement { : {}; // This relies on our column sizes being defined in pixel values, which is currently true as we calculate to pixel values in the `useSetupColumnSizes` hook - minStickyLeftOffset += maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0; + minStickyLeftOffset += + maybeSticky === "left" ? parseInt(columnSizes[columnIndex].replace("px", ""), 10) : 0; const cellId = `${row.kind}_${row.id}_${column.id}`; const applyCellHighlight = cellHighlight && !!column.id && !isHeader && !isTotals;