Browse Source

Fix property check

pull/122/head
Diana Shkolnikov 10 years ago
parent
commit
39e3672271
  1. 2
      helper/geojsonify.js

2
helper/geojsonify.js

@ -27,7 +27,7 @@ function search( docs, params ){
var geodata = docs.map( function( doc ) {
// something went very wrong
if( !doc || !doc.center_point ) {
if( !doc || !doc.hasOwnProperty( 'center_point' ) ) {
return warning();
}

Loading…
Cancel
Save