Skip to content

Commit

Permalink
Update the start index of the for loop.
Browse files Browse the repository at this point in the history
Previously the open date was never acted on, and so the for loop started
at one which skipped the open date.  Now it needs to be acted on.
  • Loading branch information
drgrice1 committed Sep 28, 2024
1 parent 13afbcf commit d6c0d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/DatePicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
groupRules[activeIndex][0]?.parentNode._flatpickr.selectedDates[0]?.getTime() ||
groupRules[activeIndex][1];

for (let i = 1; i < groupRules.length; ++i) {
for (let i = 0; i < groupRules.length; ++i) {
if (i == activeFieldDate) continue;
const thisFieldDate =
groupRules[i][0]?.parentNode._flatpickr.selectedDates[0]?.getTime() || groupRules[i][1];
Expand Down

0 comments on commit d6c0d02

Please sign in to comment.