-
Notifications
You must be signed in to change notification settings - Fork 33
fix: avoid errors when excluding content types with multiple sources … #246
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
base: staging
Are you sure you want to change the base?
fix: avoid errors when excluding content types with multiple sources … #246
Conversation
Staging->main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ccarrascal Thanks for the update! Please verify the suggested feedback—everything else looks good to me.
Once approved, we’ll proceed to merge the changes into staging and validate the functionality there.
…using the same schema
be3011f
to
373c43b
Compare
@ccarrascal Just revisiting the issue for clarity—while testing the changes, could you please share the exact error you were encountering during node generation? It would help in documenting and validating the fix better. Could you also help me with the steps to reproduce ?
|
…using the same schema
PR to fix errors happening while building a site importing content from two different stacks.
Our schema is the same in both stacks and we just want to combine the content of both, but we need to exclude some content types from the shared stack that we don't want to import.
We are using this setup in our gatsby-config file:
The first instance (shared content) is excluding some content types with
excludeContentTypes: ["shell"]
This is creating errors as the contentType variable is empty because there is no match in
contentTypesMap[item.content_type_uid]
The idea is to avoid creating the node if the content type uid is in the list of excluded content types, or it just null.