diff --git a/src/jmapNew/shape/graph/Section/index.js b/src/jmapNew/shape/graph/Section/index.js index 2c2e0285a..fb88168ee 100644 --- a/src/jmapNew/shape/graph/Section/index.js +++ b/src/jmapNew/shape/graph/Section/index.js @@ -150,6 +150,7 @@ export default class Section extends Group { this.derailer && this.derailer.hide(); this.speedLimit && this.speedLimit.hide(); this.speedLimitName && this.speedLimitName.hide(); + this.separator && this.separator.show(); this.badShunt && this.badShunt.hide(); this.axle && this.axle.setStyle({ diff --git a/src/jmapNew/shape/graph/Station/index.js b/src/jmapNew/shape/graph/Station/index.js index 936f28176..92392845b 100644 --- a/src/jmapNew/shape/graph/Station/index.js +++ b/src/jmapNew/shape/graph/Station/index.js @@ -789,9 +789,11 @@ export default class Station extends Group { } else { this.eachChild(elem => { elem.hide(); }); } - this.model.kmPostShow ? this.mileageText.show() : this.mileageText.hide(); + if (this.mileageText) { + this.model.kmPostShow ? this.mileageText.show() : this.mileageText.hide(); + } if (!this.model.visible) { - this.mileageText.hide(); + this.mileageText && this.mileageText.hide(); } } getAnchorPoint() {