diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-06 14:59:34 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-06 14:59:34 +1000 |
commit | bf16ee83f422c06d0f49e09d53de843e128b0dc8 (patch) | |
tree | b61124170c0a8fbe721f99609af946f60cfed036 /lib | |
parent | 0848dfb0e03ef18bfef42ee112a10963e546170d (diff) |
fix building unit type filtering
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filterSource.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/filterSource.js b/lib/filterSource.js index bf5d113..af535bf 100644 --- a/lib/filterSource.js +++ b/lib/filterSource.js @@ -26,7 +26,7 @@ const buildingUnitTypeWhitelist = [ module.exports = (feature) => { // if the address has a building unit type, only allow a few whitelisted types - if ('BLGUNTTYP' in feature.properties) { + if ('BLGUNTTYP' in feature.properties && feature.properties.BLGUNTTYP !== null) { if (buildingUnitTypeWhitelist.includes(feature.properties.BLGUNTTYP)) { // building unit type in the whitelist, include feature return true |