From 39e3672271c05b86911adc9e85043c574f11e626 Mon Sep 17 00:00:00 2001 From: Diana Shkolnikov Date: Thu, 7 May 2015 14:26:47 -0400 Subject: [PATCH] Fix property check --- helper/geojsonify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/geojsonify.js b/helper/geojsonify.js index ef998463..b3486a3e 100644 --- a/helper/geojsonify.js +++ b/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(); }