mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-23 16:09:11 +00:00
fix: issue when user hides all columns
This commit is contained in:
committed by
Carlos Valente
parent
c1f25f8dba
commit
62570899e8
@@ -19,7 +19,10 @@ function BlockRow(props: BlockRowProps) {
|
|||||||
return null;
|
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 (
|
return (
|
||||||
<tr className={style.blockRow}>
|
<tr className={style.blockRow}>
|
||||||
|
|||||||
Reference in New Issue
Block a user