Skip to content

Commit

Permalink
Comment for #87 and format
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Sep 25, 2024
1 parent 43ab0e6 commit 4af165c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/routes/route_check/results_export/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,12 @@ function policyConflictLog(state: State, workbook: ExcelJS.Workbook) {
sheet.getCell("L" + (8 + i)).value = pc.notes;
}

for(let i = 0; i <42; i++) {
// 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',
type: "list",
allowBlank: true,
formulae: ["'8.2 Lookups&Forumlae2'!$B$7:$B$12"]
formulae: ["'8.2 Lookups&Forumlae2'!$B$7:$B$12"],
};
}
}
Expand All @@ -181,11 +182,12 @@ function criticalIssueLog(state: State, workbook: ExcelJS.Workbook) {
sheet.getCell("L" + (8 + i)).value = ci.notes;
}

for(let i = 0; i <42; i++) {
// Fix the dropdown menu thatExcelJS breaks
for (let i = 0; i < 42; i++) {
sheet.getCell("F" + (8 + i)).dataValidation = {
type: 'list',
type: "list",
allowBlank: true,
formulae: ["'8.2 Lookups&Forumlae2'!$B$16:$B$39"]
formulae: ["'8.2 Lookups&Forumlae2'!$B$16:$B$39"],
};
}
}
Expand Down

0 comments on commit 4af165c

Please sign in to comment.