Browse Source

fix(remove): remove console log

pull/1/head
farhantock 6 months ago
parent
commit
467c3c16af
  1. 16
      edit-mode/function/ganttSettings.js

16
edit-mode/function/ganttSettings.js

@ -221,14 +221,14 @@ async function initGanttSettings() {
gantt.setWorkTime({ day: dayoff[i], hours: false });
}
}
for (let index = 1; index <= 7; index++) {
const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June
if (gantt.isWorkTime({ date: dateToCheck, hours: false })) {
console.log(dateToCheck.toString() + ' is work time.');
} else {
console.log(dateToCheck.toString() + ' is not work time.');
}
}
// for (let index = 1; index <= 7; index++) {
// const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June
// if (gantt.isWorkTime({ date: dateToCheck, hours: false })) {
// console.log(dateToCheck.toString() + ' is work time.');
// } else {
// console.log(dateToCheck.toString() + ' is not work time.');
// }
// }
}
}

Loading…
Cancel
Save