fix: issue when user hides all columns

This commit is contained in:
Carlos Valente
2025-04-30 19:38:52 +02:00
committed by Carlos Valente
parent c1f25f8dba
commit 62570899e8
@@ -19,7 +19,10 @@ function BlockRow(props: BlockRowProps) {
return null;
}
const paddingRows = new Array(columnCount - 1).fill(null);
// guard the use case where user has hidden all columns
const fillColumns = Math.min(columnCount, 1);
const paddingRows = new Array(fillColumns).fill(null);
return (
<tr className={style.blockRow}>