Skip to content

Commit

Permalink
Updated the reading custom message logic. matteodelabre#57
Browse files Browse the repository at this point in the history
  • Loading branch information
knacharam-rythmos committed Oct 23, 2018
1 parent 23fdfcc commit e78f7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function collectMessages(tree) {
tree[key].unique = true;
} else {
// Nested schema
var subtree = collectMessages(tree[key].tree);
var subtree = collectMessages(tree[key].tree || tree[key]);

for (var subkey in subtree) {
if (subtree.hasOwnProperty(subkey)) {
Expand Down

0 comments on commit e78f7cc

Please sign in to comment.