Skip to content

Commit 7ba7623

Browse files
#183 use viewer.table.size() for rows count if view info is not available
for init rows count and columns number stats display
1 parent 8e568ff commit 7ba7623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/scripts/data.view.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ function initializeDataView() {
143143
* Updates data stats on view config changes or data load/update.
144144
*/
145145
function updateStats() {
146+
const numberOfRows = viewer.view ? viewer.view.num_rows() : viewer.table.size();
146147
// get rows count and displayed columns info
147-
viewer.view.num_rows().then(rowCount => {
148+
numberOfRows.then(rowCount => {
148149
let columns = viewer['columns'];
149150
/*if (viewConfig.hasOwnProperty('columns')) {
150151
// use view config columns property instead

0 commit comments

Comments
 (0)