Skip to content

Commit

Permalink
Bugfix: Tables do not initially render (#7029)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg authored Nov 7, 2024
2 parents 6711068 + 397bef6 commit da516bc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ export class KolTableStateless implements TableStatelessAPI {
}

private renderSpacer(variant: 'foot' | 'head', cellDefs: KoliBriTableHeaderCell[][] | KoliBriTableCell[][]): JSX.Element {
const colspan = cellDefs?.[0].reduce((acc, row) => acc + (row.colSpan || 1), 0);
const colspan = cellDefs?.[0]?.reduce((acc, row) => acc + (row.colSpan || 1), 0);

return (
<tr class={`${variant}-spacer`} aria-hidden="true">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit da516bc

Please sign in to comment.