When passing Mutators.js as a dependency on a model that did not have any mutators defined, a type error is thrown. Cannot read property 'forEach' of undefined - Line 169. This caused the entire app to break.
Adding a simple if statement resolved this. I will submit a pull request to help avoid this user error and allow the app to build as normal.
When passing Mutators.js as a dependency on a model that did not have any mutators defined, a type error is thrown. Cannot read property 'forEach' of undefined - Line 169. This caused the entire app to break.
Adding a simple if statement resolved this. I will submit a pull request to help avoid this user error and allow the app to build as normal.