Skip to content

Commit

Permalink
Delete grid from selected slides (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankuenzer authored Feb 20, 2024
1 parent 8227255 commit 2f05304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Office.onReady((info) => {

async function deleteShapesByName(name: string) {
await PowerPoint.run(async (context) => {
const sheet = context.presentation.slides.getItemAt(0);
const sheet = context.presentation.getSelectedSlides().getItemAt(0);
const shapes = sheet.shapes;

shapes.load();
Expand Down

0 comments on commit 2f05304

Please sign in to comment.