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

chore(gatsby-source-contentful): simplify url arg generation #28440

Merged
merged 1 commit into from
Dec 2, 2020
Merged

Conversation

pvdz
Copy link
Contributor

@pvdz pvdz commented Dec 2, 2020

Before this was doing _.pickBy(obj, _.identity), which is essentially a .filter(Boolean). But qs will already ignore undefined properties, whether they exist or not, so we don't really need to jump through those hoops. So that's what I've done.

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 2, 2020
@pvdz pvdz added type: chore topic: source-contentful Related to Gatsby's integration with Contentful and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Dec 2, 2020
Copy link
Contributor

@vladar vladar left a comment

Choose a reason for hiding this comment

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

Nifty 👍

@pvdz pvdz merged commit 297c28b into master Dec 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the notpicky branch December 2, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: source-contentful Related to Gatsby's integration with Contentful
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants