Skip to content

Commit df2a6d2

Browse files
[PowerPoint] (tables) Add missing sync statement (#985)
1 parent 5736240 commit df2a6d2

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

samples/powerpoint/shapes/add-modify-tables.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ script:
224224
await context.sync();
225225
226226
// Get the Table row and column count.
227-
console.log("Table RowCount:" + table.rowCount + " and columnCount: " + table.columnCount);
227+
console.log("Table RowCount: " + table.rowCount + " and columnCount: " + table.columnCount);
228228
} else console.log("Selected shape isn't table.");
229229
} else console.log("No shape selected.");
230230
});
@@ -248,6 +248,8 @@ script:
248248
cell.text = generateRandomString();
249249
}
250250
}
251+
252+
await context.sync();
251253
});
252254
}
253255

snippet-extractor-output/snippets.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15915,7 +15915,7 @@
1591515915
await context.sync();
1591615916

1591715917
// Get the Table row and column count.
15918-
console.log("Table RowCount:" + table.rowCount + " and columnCount: " + table.columnCount);
15918+
console.log("Table RowCount: " + table.rowCount + " and columnCount: " + table.columnCount);
1591915919
} else console.log("Selected shape isn't table.");
1592015920
} else console.log("No shape selected.");
1592115921
});
@@ -16408,7 +16408,7 @@
1640816408
await context.sync();
1640916409

1641016410
// Get the Table row and column count.
16411-
console.log("Table RowCount:" + table.rowCount + " and columnCount: " + table.columnCount);
16411+
console.log("Table RowCount: " + table.rowCount + " and columnCount: " + table.columnCount);
1641216412
} else console.log("Selected shape isn't table.");
1641316413
} else console.log("No shape selected.");
1641416414
});
@@ -17283,6 +17283,8 @@
1728317283
cell.text = generateRandomString();
1728417284
}
1728517285
}
17286+
17287+
await context.sync();
1728617288
});
1728717289
'PowerPoint.Table#getCellOrNullObject:member(1)':
1728817290
- >-
@@ -17308,6 +17310,8 @@
1730817310
cell.text = generateRandomString();
1730917311
}
1731017312
}
17313+
17314+
await context.sync();
1731117315
});
1731217316
'PowerPoint.TableAddOptions:interface':
1731317317
- >-
@@ -17536,6 +17540,8 @@
1753617540
cell.text = generateRandomString();
1753717541
}
1753817542
}
17543+
17544+
await context.sync();
1753917545
});
1754017546
'PowerPoint.TableCell#text:member':
1754117547
- >-
@@ -17561,6 +17567,8 @@
1756117567
cell.text = generateRandomString();
1756217568
}
1756317569
}
17570+
17571+
await context.sync();
1756417572
});
1756517573
'PowerPoint.TableCellBorders:interface':
1756617574
- >-

0 commit comments

Comments
 (0)