Error when scheduling a report in version 5.6

Juliano2 years ago

Every time I try to create a schedule for a report, the error below appears, but it generates the schedule. Has anyone gone through this to help me out?

ERROR
Cannot read properties of undefined (reading 'name')
TypeError: Cannot read properties of undefined (reading 'name')
Anton Tananaev2 years ago

Have you tried if it's happening on master?

Juliano2 years ago

Yes, I already did the test with the master/admin user

Anton Tananaev2 years ago

I'm talking about about master branch in the repository. The latest code.

Juliano2 years ago

No, not in this case, because I already changed many files that were previously posted, so the question

Anton Tananaev2 years ago

Can you please try and see if it has the issue.

Juliano2 years ago

I just tested on https://demo.traccar.org/ server, same error

Anton Tananaev2 years ago

Demo servers run the official release, so they won't really help with testing the latest code.

Juliano2 years ago

I found the problem, now I'm trying to solve it. The error is when showing the calendar name field in the ScheduledPage.js file.

{calendars[item.calendarId].name}

if I remove the reference from the name the error disappears. I'll try to fix it, if I can I'll post it here

Anton Tananaev2 years ago

I'm pretty sure it's already fixed and that's why I'm asking you to test master, which you're refusing for some reason.

Juliano2 years ago

I'm already checking it, I'll report if it worked