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

Wrong CRM ID - Throw an error #689

Open
1 task
bradystroud opened this issue Sep 26, 2024 · 0 comments
Open
1 task

Wrong CRM ID - Throw an error #689

bradystroud opened this issue Sep 26, 2024 · 0 comments

Comments

@bradystroud
Copy link
Member

bradystroud commented Sep 26, 2024

cc @sam-s-maher

Right now SSW.People will silently fail to build someones page if their CRM ID is wrong.

Tasks

SSW.People/gatsby-node.js

Lines 407 to 415 in a86fde0

const people = data.people.nodes
.filter(
(node) =>
node.frontmatter.id &&
(peopleCRM.find((x) => x.id === node.frontmatter.id) ||
node.frontmatter.id.indexOf('-') < 0)
)
.map((node) => {
const crmData = peopleCRM.find((x) => x.id === node.frontmatter.id);

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

No branches or pull requests

1 participant