Commit 85a5c654 authored by nanahira's avatar nanahira

fix

parent 8d53be87
...@@ -23,7 +23,7 @@ class InventoryBuilder { ...@@ -23,7 +23,7 @@ class InventoryBuilder {
async loadGateways() { async loadGateways() {
const gateways = await this.load('gateways2'); const gateways = await this.load('gateways2');
for (let gateway of gateways) { for (let gateway of gateways) {
gateway.isCN = this.hosts[gateway.router].location.startsWith("CN"); gateway.isCN = this.hosts[gateway.router] && this.hosts[gateway.router].location.startsWith("CN");
if (gateway.mark) { if (gateway.mark) {
gateway.selectionMark = gateway.mark + 50; gateway.selectionMark = gateway.mark + 50;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment