Skip to content

Commit 46e7a7e

Browse files
committed
Display columns with no data
Signed-off-by: gjmooney <[email protected]>
1 parent f68a806 commit 46e7a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/core/view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class View {
4242
if (region === 'body') {
4343
return this._data.length;
4444
} else {
45-
return this._bodyFields[0].rows.length;
45+
return this._bodyFields[0]?.rows.length ?? 1;
4646
}
4747
}
4848

0 commit comments

Comments
 (0)