From f2fcef02849ea132214285c7b6f45a4cce5607cd Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 9 Apr 2022 21:52:37 +0500 Subject: [PATCH] routes - don't break if feature is not found --- modules/routes-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/routes-generator.js b/modules/routes-generator.js index e7a909cb..e4ec3374 100644 --- a/modules/routes-generator.js +++ b/modules/routes-generator.js @@ -74,7 +74,7 @@ window.Routes = (function () { const ports = allPorts.filter(b => b.port === f); // all ports on the same feature if (!ports.length) return; - if (features[f].border) addOverseaRoute(f, ports[0]); + if (features[f]?.border) addOverseaRoute(f, ports[0]); // get inner-map routes for (let s = 0; s < ports.length; s++) {