Fix headers being exported twice from notebooks (#21195)

* fix headers being exported twice

* simplify

* fix test
This commit is contained in:
Lucy Zhang
2022-11-10 13:31:36 -08:00
committed by GitHub
parent 2a933d43c4
commit 7ca4e2bcae
3 changed files with 26 additions and 29 deletions

View File

@@ -129,10 +129,6 @@ export class SerializationService implements ISerializationService {
let index = 0;
let startRequestParams = this.createStartRequest(serializationRequest, index);
index = index + startRequestParams.rows.length;
// Adjust row index based on whether or not header row is included
if (serializationRequest.includeHeaders) {
index--;
}
let startResult = await provider.startSerialization(startRequestParams);