Skip to content

Commit

Permalink
Merge branch 'main' into planning-tool-ui-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete-Y-CS authored Sep 30, 2024
2 parents e53b837 + 4af165c commit 2a4ff33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/route_check/results_export/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ function policyConflictLog(state: State, workbook: ExcelJS.Workbook) {
sheet.getCell("L" + (8 + i)).value = pc.notes;
}

// ExcelJS somehow breaks the dropdown menu on some pages. Manually restore it.
for (let i = 0; i < 42; i++) {
sheet.getCell("F" + (8 + i)).dataValidation = {
type: "list",
Expand All @@ -181,6 +182,7 @@ function criticalIssueLog(state: State, workbook: ExcelJS.Workbook) {
sheet.getCell("L" + (8 + i)).value = ci.notes;
}

// Fix the dropdown menu thatExcelJS breaks
for (let i = 0; i < 42; i++) {
sheet.getCell("F" + (8 + i)).dataValidation = {
type: "list",
Expand Down

0 comments on commit 2a4ff33

Please sign in to comment.