From 360a3938c9fc995556109a9e28b451408be7307e Mon Sep 17 00:00:00 2001 From: Justin Greywolf Date: Wed, 29 Nov 2023 13:16:48 -0800 Subject: [PATCH] remove indexer, and use getItemAt --- .../office/src/lib/client/clientApi/PowerPointService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/office/src/lib/client/clientApi/PowerPointService.ts b/packages/office/src/lib/client/clientApi/PowerPointService.ts index 7c9458c..2384677 100644 --- a/packages/office/src/lib/client/clientApi/PowerPointService.ts +++ b/packages/office/src/lib/client/clientApi/PowerPointService.ts @@ -43,13 +43,13 @@ export class PowerPointService extends OfficeService { await context.sync(); - for(let slideIndex = 0; slideIndex < slides.items.length; slideIndex++) { - const slide = slides.items[slideIndex]; + for(let slideIndex = 0; slideIndex < slides.items.length; slideIndex++) {`` + const slide = slides.getItemAt(slideIndex); const shapes = slide.shapes.load('items'); await context.sync(); for (let shapeIndex = 0; shapeIndex < shapes.items.length; shapeIndex++) { - const shape = shapes.items[shapeIndex].load('tags/items'); + const shape = shapes.getItemAt(shapeIndex).load('tags/items'); await context.sync(); try{