mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 01:13:55 +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;
|
||||
}
|
||||
|
||||
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}>
|
||||
|
||||
Reference in New Issue
Block a user