diff --git a/src/util/to-rmg.ts b/src/util/to-rmg.ts index 64b2e2897..4ada49346 100644 --- a/src/util/to-rmg.ts +++ b/src/util/to-rmg.ts @@ -402,7 +402,9 @@ const generateNewStn = ( if (graph.getNodeAttributes(u).type == StationType.GzmtrBasic) { const gzAttr = uAttr as GzmtrBasicStationAttributes; newParam.stn_list[u].num = gzAttr.stationCode; - newParam.stn_list[u].secondaryName = gzAttr.secondaryNames; + if (gzAttr.secondaryNames[0] !== '' || gzAttr.secondaryNames[1] !== '') { + newParam.stn_list[u].secondaryName = gzAttr.secondaryNames; + } } if (graph.getNodeAttributes(u).type == StationType.GzmtrInt) { const gzAttr = uAttr as GzmtrIntStationAttributes;