From 0ff60d5a90f39b1d8a6bee744e09f8988cf88bf5 Mon Sep 17 00:00:00 2001 From: Justin Greywolf Date: Fri, 17 Nov 2023 06:58:06 -0800 Subject: [PATCH] load tags properties --- .../office/src/lib/client/clientApi/PowerPointService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/office/src/lib/client/clientApi/PowerPointService.ts b/packages/office/src/lib/client/clientApi/PowerPointService.ts index aa4e33a..793ff63 100644 --- a/packages/office/src/lib/client/clientApi/PowerPointService.ts +++ b/packages/office/src/lib/client/clientApi/PowerPointService.ts @@ -43,12 +43,15 @@ export class PowerPointService extends OfficeService { for(let slideIndex = 0; slideIndex < slides.items.length; slideIndex++) { const slide = slides.items[slideIndex]; - const shapes = slide.shapes.load('items, isNullObject'); + const shapes = slide.shapes.load('items'); 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 tag = shape.tags.getItem(C.TokenSettingName);