Browse Source

fix(remove): remove console log

pull/1/head
farhantock 7 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 }); gantt.setWorkTime({ day: dayoff[i], hours: false });
} }
} }
for (let index = 1; index <= 7; index++) { // for (let index = 1; index <= 7; index++) {
const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June // const dateToCheck = new Date(2023, 4, index); // Note: Month is 0-based, so 5 represents June
if (gantt.isWorkTime({ date: dateToCheck, hours: false })) { // if (gantt.isWorkTime({ date: dateToCheck, hours: false })) {
console.log(dateToCheck.toString() + ' is work time.'); // console.log(dateToCheck.toString() + ' is work time.');
} else { // } else {
console.log(dateToCheck.toString() + ' is not work time.'); // console.log(dateToCheck.toString() + ' is not work time.');
} // }
} // }
} }
} }

Loading…
Cancel
Save