Skip to content

Commit

Permalink
[fix] Fix a bug with name in old-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Jun 16, 2012
1 parent 6c61380 commit 393a254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prompt.js
Expand Up @@ -244,7 +244,7 @@ prompt.get = function (schema, callback) {
else {
iterator = [{
schema: schema.schema ? schema.schema : schema,
path: schema.path || [ 'question' ]
path: schema.path || [ schema.name || 'question' ]
}];

}
Expand Down

0 comments on commit 393a254

Please sign in to comment.