Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCurrentEvent throws if no event is in range #46

Open
eiabea opened this issue Mar 13, 2019 · 0 comments
Open

getCurrentEvent throws if no event is in range #46

eiabea opened this issue Mar 13, 2019 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@eiabea
Copy link
Owner

eiabea commented Mar 13, 2019

12:08:04.203Z ERROR tempea: Error getting temperatures
    TypeError: Cannot read property 'tz' of undefined
        at Object.getCurrentEvent (/src/controller/calendar/nextcloud.js:76:46)
        at process._tickCallback (internal/process/next_tick.js:68:7)
  • getCurrentEvent should be surrounded by try/catch
  • start and end from the event should be checked if present
@eiabea eiabea added bug Something isn't working good first issue Good for newcomers labels Mar 13, 2019
@eiabea eiabea self-assigned this Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant