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

Bug removing nulls from submission #64

Merged
merged 1 commit into from
Sep 23, 2021
Merged

Bug removing nulls from submission #64

merged 1 commit into from
Sep 23, 2021

Conversation

nathanfletcher
Copy link
Collaborator

This PR fixes #61

Just to double down on the values object being submitted, I'm reinitializing it after going through the recursive function removeNullsInArrays.
I know removeNullsInArrays mutates the array however I'm now returning the same object from the function and replacing it with its caller values once again after testing removeNullsInArrays.

@nathanfletcher nathanfletcher self-assigned this Sep 23, 2021
@vercel
Copy link

vercel bot commented Sep 23, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lacabra/submission-digitalpublicgoods/CQyU4dTvHFBcF62iVFmZuKZfCkH6
✅ Preview: https://submission-digitalpublicgoods-git-bugremovenulls-lacabra.vercel.app

Copy link
Collaborator

@lacabra lacabra left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @nathanfletcher for the explanation, made all the difference to me in understanding the change.

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.

null values still appearing in submission
2 participants