Skip to content

Commit

Permalink
fix(gen): Check that answers.odms exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Awk34 committed Jun 23, 2015
1 parent e150342 commit 342606c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
}], function (answers) {
if(answers.socketio) this.filters.socketio = true;
if(answers.auth) this.filters.auth = true;
if(answers.odms.length > 0) {
if(answers.odms && answers.odms.length > 0) {
var models;
if(!answers.models) {
models = answers.odms[0];
Expand Down

0 comments on commit 342606c

Please sign in to comment.