Hi Colin,
I added to my code : $w ( ‘news’ ). onReady (() => {
but the error message remains the same: TypeError: Cannot read properties of undefined (reading ‘map’).
My database loads correctly since the first part of my code works.
What is wrong with the code ?
const disabledDates = $w ( ‘#datePickerdepart’ ). disabledDateRanges . map ( e => new Date ( e . startDate ). getTime ());
$w ( ‘#datePickerdepart’ ). maxDate = new Date ( disabledDates . find ( e => firstTime < e ));