Skip to content

Commit

Permalink
fix: correct formatting of conditional rendering in CellRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
webloopbox committed Jan 14, 2025
1 parent bc5a29c commit 1c1f4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Components/CellRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const CellRenderer: React.FC<CellRendererProps> = ({
})}
>
{cellTemplate.render(cellToRender, isMobile ? isInEditMode : false, onCellChanged)}
{location.row.idx === 0 || (cell.type === 'header' && state.props?.enableColumnResizeOnAllHeaders)) && location.column.resizable && <ResizeColumnHandle />}
{(location.row.idx === 0 || (cell.type === 'header' && state.props?.enableColumnResizeOnAllHeaders)) && location.column.resizable && <ResizeColumnHandle />}
{location.column.idx === 0 && location.row.resizable && <ResizeRowHandle />}
{state.enableGroupIdRender && cell?.groupId !== undefined && !(isInEditMode && isMobile) && (
<span className="rg-groupId">{cell.groupId}</span>
Expand Down

0 comments on commit 1c1f4bc

Please sign in to comment.