Skip to content

Commit 9854200

Browse files
committed
refactor: declare dropdownValues and rule as constants
1 parent fbb8e3b commit 9854200

File tree

1 file changed

+2
-2
lines changed
  • solutions/automations/timesheets

1 file changed

+2
-2
lines changed

solutions/automations/timesheets/Code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ function addNotifiedColumn(sheet, beginningRow, numRows) {
136136
numRows,
137137
1,
138138
);
139-
dropdownValues = ["NOTIFIED", "PENDING"];
140-
rule = SpreadsheetApp.newDataValidation()
139+
const dropdownValues = ["NOTIFIED", "PENDING"];
140+
const rule = SpreadsheetApp.newDataValidation()
141141
.requireValueInList(dropdownValues)
142142
.build();
143143
notifiedColumnRange.setDataValidation(rule);

0 commit comments

Comments
 (0)