aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/valueLimits.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/valueLimits.js b/lib/valueLimits.js
index c902883..135fa15 100644
--- a/lib/valueLimits.js
+++ b/lib/valueLimits.js
@@ -6,7 +6,10 @@
* @returns {boolean}
*/
module.exports = (feature) => {
- if ('addr:flats' in feature.properties && feature.properties['addr:flats'].length > 255) {
+ console.log(feature)
+ if ('addr:flats' in feature.properties && feature.properties['addr:flats'] !== null && feature.properties['addr:flats'].length > 255) {
+ // TODO need to work out why nulls are appearing when using
+ //if ('addr:flats' in feature.properties && feature.properties['addr:flats'].length > 255) {
// need to wrap
const value = feature.properties['addr:flats']
for (let i = 0; i < value.length; i += 255) {