Skip to content

Commit

Permalink
remove indexer, and use getItemAt
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreywolf committed Nov 29, 2023
1 parent 93f754f commit 360a393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/office/src/lib/client/clientApi/PowerPointService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 360a393

Please sign in to comment.