File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,9 @@ exports.generateScroller = (basicSelect) => {
108
108
109
109
switch (data.command) {
110
110
case 'rows':
111
-
112
111
isFetching = false;
113
112
114
- if (scroller.columnDefinitions.length === 0) {
113
+ if (data.rows.length > 0 && scroller.columnDefinitions.length === 0) {
115
114
scroller.columnDefinitions = Object.keys(data.rows[0]).map(col => ({
116
115
title: col,
117
116
columnDataKey: col,
@@ -131,7 +130,7 @@ exports.generateScroller = (basicSelect) => {
131
130
}
132
131
133
132
const nextButton = document.getElementById("nextButton");
134
- nextButton.innerText = noMoreRows ? ' End of data' : ' Fetching more...';
133
+ nextButton.innerText = noMoreRows ? ('Loaded ' + scroller.rowsData.length + '. End of data') : ('Loaded ' + scroller.rowsData.length + '. Fetching more...') ;
135
134
break;
136
135
137
136
case 'fetch':
You can’t perform that action at this time.
0 commit comments