Skip to content

Commit

Permalink
update tag loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreywolf committed Nov 29, 2023
1 parent ea51676 commit 9adbe48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/office/src/lib/client/clientApi/PowerPointService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ export class PowerPointService extends OfficeService {
for(let slideIndex = 0; slideIndex < slides.items.length; slideIndex++) {
const slide = slides.items[slideIndex];
const shapes = slide.shapes;
shapes.load("items/tags");
shapes.load("tags/key, tags/value");
await context.sync();

for (let shapeIndex = 0; shapeIndex < shapes.items.length; shapeIndex++) {
const shape = shapes.items[shapeIndex];
shape.load('tags');
await context.sync();

try{
const diagramTag = shape.tags.getItem(C.TokenSettingName);
diagramTag.load("key, value");
await context.sync();
if(diagramTag) {
shape.delete();
Expand Down

0 comments on commit 9adbe48

Please sign in to comment.