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

Fix GoToEvent link generation when value is None #224

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

hramezani
Copy link
Member

No description provided.

if (v === undefined) {
throw new Error(`field "${key}" not found in ${JSON.stringify(row)}`)
} else if (v === null) {
if (v === null || v === undefined) {
returnNull = true
return 'null'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we return 'null' here and null below? Do we no longer need to raise an error?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we return 'null' here and null below?

Don't know.

Do we no longer need to raise an error?

I think we should keep it like that. I will change the implementation

@hramezani
Copy link
Member Author

Ok, I changed the implementation.

The table renders without any error with my patch. you can see the row begins with Tokyo is not rendered as a link (because I changed the data to reproduce the problem and confirm my fix)

image

but it fails without my patch:

image

Copy link
Member

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @hramezani

@sydney-runkle sydney-runkle merged commit 5995dfe into main Apr 23, 2024
14 checks passed
@sydney-runkle sydney-runkle deleted the fix-link-render branch April 23, 2024 13:15
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.

2 participants