HashDefineElectronics / KiCad_BOM_Wizard

This is a javascript script for creating Kicad HTML BOM.
59 stars 18 forks source link

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

Open tathagata96 opened 8 years ago

tathagata96 commented 8 years ago

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 commented 8 years ago

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