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

Undefined forEach for fields section if it doesn't have any values #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tathagata96
Copy link

bom-wizard

Sometimes we need to generate BOM before all components' fields are populated.
For example: In the above image if certain component doesn't not have fields populated it generates <fields/> and in our we are trying to loop this which gives an undefined forEach error.

This pull request fixes the above issue.

@HashDefineElectronics
Copy link
Owner

Interesting issue. Thank you for your commit.

Before I commit your changes could you run the linter on the code to make sure that the code maintains the standard style.

You can run it by
npm run lint

  • Ron

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.

None yet

2 participants