Skip to content

Commit

Permalink
Merge pull request #87 from built-on-openfin/dev/adam/excel-integrati…
Browse files Browse the repository at this point in the history
…on-sheet-fix

fix selected sheet logic
  • Loading branch information
adam-saland authored Jan 29, 2024
2 parents 502f607 + e523908 commit 1358b47
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 @@ -255,7 +255,7 @@ async function populateWorksheets(): Promise<void> {
* @param name The name of worksheet to select.
*/
async function selectWorksheet(name: string): Promise<void> {
if (openWorksheets && selectedWorksheetIndex === undefined) {
if (openWorksheets) {
const newWorksheetIndex = openWorksheets.findIndex((w) => w.name === name);

if (newWorksheetIndex !== selectedWorksheetIndex) {
Expand Down

0 comments on commit 1358b47

Please sign in to comment.