Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
johnman committed Jan 23, 2024
1 parent 2d756bf commit dbf7fce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion how-to/integration-excel/client/src/excel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ async function selectWorksheet(name: string): Promise<void> {
const newWorksheetIndex = openWorksheets.findIndex((w) => w.name === name);

if (newWorksheetIndex !== selectedWorksheetIndex) {
if(selectedWorksheetIndex !== undefined) {
if (selectedWorksheetIndex !== undefined) {
const oldWorksheet = openWorksheets[selectedWorksheetIndex];
if (oldWorksheet) {
await oldWorksheet.sheet.removeEventListener(handleCellChange);
Expand Down

0 comments on commit dbf7fce

Please sign in to comment.