Skip to content

Commit

Permalink
Display columns with no data
Browse files Browse the repository at this point in the history
Signed-off-by: gjmooney <[email protected]>
  • Loading branch information
gjmooney authored and martinRenou committed Feb 29, 2024
1 parent 0de0cd2 commit 7ca2f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class View {
if (region === 'body') {
return this._data.length;
} else {
return this._bodyFields[0].rows.length;
return this._bodyFields[0]?.rows.length ?? 1;
}
}

Expand Down

0 comments on commit 7ca2f0b

Please sign in to comment.