We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c84a9f commit 2a16789Copy full SHA for 2a16789
client/src/webview/useDataViewer.ts
@@ -135,7 +135,14 @@ const useDataViewer = (theme: string) => {
135
return row;
136
});
137
138
- params.successCallback(rowData, count);
+ params.successCallback(
139
+ rowData,
140
+ // If we've returned less than 100 rows, we can assume that's the last page
141
+ // of the data and stop searching.
142
+ rowData.length < 100 && count === undefined
143
+ ? rowData[rowData.length - 1]["#"]
144
+ : count,
145
+ );
146
147
},
148
};
0 commit comments