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 5ffaa15 commit 197fe39Copy full SHA for 197fe39
src/classes/template.ts
@@ -100,7 +100,7 @@ export class Template implements ITemplate {
100
async countExistingSlides(): Promise<void> {
101
const xml = await this.getSlideIdList();
102
const sldIdLst = xml.getElementsByTagName('p:sldIdLst');
103
- if (sldIdLst) {
+ if (sldIdLst.length > 0) {
104
const existingSlides = sldIdLst[0].getElementsByTagName('p:sldId');
105
this.existingSlides = existingSlides.length;
106
}
0 commit comments