Skip to content

Commit 342606c

Browse files
committed
fix(gen): Check that answers.odms exists
1 parent e150342 commit 342606c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
224224
}], function (answers) {
225225
if(answers.socketio) this.filters.socketio = true;
226226
if(answers.auth) this.filters.auth = true;
227-
if(answers.odms.length > 0) {
227+
if(answers.odms && answers.odms.length > 0) {
228228
var models;
229229
if(!answers.models) {
230230
models = answers.odms[0];

0 commit comments

Comments
 (0)