Permalink
Browse files

Merge pull request #60 from evalcrux/master

null check fixes rendering error for Browser tab after sending JSON arrays to ES
  • Loading branch information...
2 parents b90c4cd + 27aa1b2 commit 4cae0cb4c6429b4a4f0afa9f6c8118a49b9940d2 @mobz committed Mar 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/es/core.js
View
@@ -129,7 +129,9 @@
var field = paths[dpath] = fields[field_name] = fields[field_name] || acx.extend({
field_name: field_name, core_type: coretype_map[mapping.type], dpaths: []
}, default_property_map[coretype_map[mapping.type]], mapping);
- field.dpaths.push(dpath);
+ if (fields.dpaths) {
+ field.dpaths.push(dpath);
+ }
return field;
}
function getFields(properties, type, index, listeners) {

0 comments on commit 4cae0cb

Please sign in to comment.