flamelink / gatsby-source-flamelink

Gatsby source plugin for Flamelink
MIT License
8 stars 9 forks source link

fix: Ensure globals default to empty object when not defined #29

Closed caweidmann closed 4 years ago

caweidmann commented 4 years ago

Issue: When creating a new Flamelink project the globals object won't exist in the Firebase DB under the fl_settings collection and this will cause the gatsby source plugin to throw on the normalize.processGlobals() method.

Solution: Default globals parameter on the normalize.processGlobals() method to an empty object.