Skip to content

Commit

Permalink
remove isNullObject
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 7, 2024
1 parent 1ea2ef7 commit a60a1a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/word-plugin/src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function run1() {
for (let j = 0; j < wordChars.length; j++) {
const wordChar = wordChars[j];
try {
if (wordChar && !wordChar.isNullObject) {
if (wordChar) {
if (wordChar.items.length > 2) {
wordChar.items[1].font.bold = true;
wordChar.items[2].font.bold = true;
Expand Down Expand Up @@ -176,7 +176,7 @@ export async function run2() {
for (let j = 0; j < wordChars.length; j++) {
const wordChar = wordChars[j];

if (wordChar && !wordChar.isNullObject) {
if (wordChar) {
if (wordChar.items.length > 2) {
wordChar.items[1].font.bold = true;
wordChar.items[2].font.bold = true;
Expand Down

0 comments on commit a60a1a1

Please sign in to comment.