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

Only show location if event.location is not empty and not null #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vilhelmprytz
Copy link

I tried console.log my event.location to find the cause of issue #2 and it turns out some of my events have location variables that are not empty, they are null.

location_is_null

Added a condition to the if-statement to make sure event.location is also not null.

Fixes #2

* not checking if `event.location` is `null` would cause exceptions for calendars that contain null location variables

fixes GRA0007#2
@vilhelmprytz
Copy link
Author

oops I noticed this is a duplicate of #1, close this once it has been merged 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant