Hi i have this script js
export default {
myVar1: [],
myVar2: {},
next_service: () => {
if(!last_service.formattedDate) {return ''}
var dt = new Date(last_service.formattedDate)
dt.setMonth( dt.getMonth() + interval.text );
return dt
}
}
i just added that to my script section but its giving me error attached image the idea is to change a field (next_service) depending on two other fields (last_service and interval)