Skip to content

Commit 98a3149

Browse files
committed
set default autoGeoJSON if not defined
1 parent f6db4b7 commit 98a3149

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/commonConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,11 @@ function processEnvironmentVariables() {
454454
config.autocast = process.env.IOTA_AUTOCAST === 'true';
455455
}
456456

457+
457458
if (process.env.IOTA_AUTOCAST_GEOJSON) {
458459
config.autocastGeoJSON = process.env.IOTA_AUTOCAST_GEOJSON.split(',').map((ctx) => ctx.trim());
459460
}
461+
config.autocastGeoJSON = [] || config.autocastGeoJSON;
460462

461463
if (process.env.IOTA_MULTI_CORE) {
462464
config.multiCore = process.env.IOTA_MULTI_CORE === 'true';

0 commit comments

Comments
 (0)