Sorry, but I'm struggling with this function ....
const output = [null];
function sunData() {
return suncalc.getSunTimes(new Date(), 43.690419, 10.816769);
}
const x = sunData.sunriseStart.value
output[0] = { payload: x };
return output;
the error is ...
"TypeError: Cannot read properties of undefined (reading 'value')"
Please help me ....