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 84130a2 commit aea4ca6Copy full SHA for aea4ca6
client/src/connection/itc/ItcLibraryAdapter.ts
@@ -115,8 +115,20 @@ class ItcLibraryAdapter implements LibraryAdapter {
115
start: number,
116
limit: number,
117
): Promise<TableData> {
118
+ // We only need the columns for the first page of results
119
+ const columns =
120
+ start === 0
121
+ ? {
122
+ columns: ["INDEX"].concat(
123
+ (await this.getColumns(item)).items.map((column) => column.name),
124
+ ),
125
+ }
126
+ : {};
127
+
128
const { rows } = await this.getRows(item, start, limit);
129
130
+ rows.unshift(columns);
131
132
// Fetching csv doesn't rely on count. Instead, we get the count
133
// upfront via getTableRowCount
134
return { rows, count: -1 };
0 commit comments