openatc-components 0.1.58 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -511,6 +511,7 @@ export default {
|
|
|
511
511
|
}
|
|
512
512
|
return item.id === ring.id
|
|
513
513
|
})[0]
|
|
514
|
+
if (!currPhase) return
|
|
514
515
|
let peddirections = []
|
|
515
516
|
for (let walk of this.sidewalkPhaseData) {
|
|
516
517
|
if (currPhase.peddirection) {
|
|
@@ -726,6 +727,7 @@ export default {
|
|
|
726
727
|
}
|
|
727
728
|
return item.id === ring.id
|
|
728
729
|
})[0]
|
|
730
|
+
if (!currPhase) return
|
|
729
731
|
let peddirections = []
|
|
730
732
|
for (let walk of this.sidewalkPhaseData) {
|
|
731
733
|
if (currPhase.peddirection) {
|
|
@@ -918,6 +920,7 @@ export default {
|
|
|
918
920
|
}
|
|
919
921
|
return item.id === ring.id
|
|
920
922
|
})[0]
|
|
923
|
+
if (!currPhase) return
|
|
921
924
|
let peddirections = []
|
|
922
925
|
for (let walk of this.sidewalkPhaseData) {
|
|
923
926
|
if (currPhase.peddirection) {
|
|
@@ -1077,7 +1080,7 @@ export default {
|
|
|
1077
1080
|
max = total
|
|
1078
1081
|
}
|
|
1079
1082
|
})
|
|
1080
|
-
while (index > 0 && max < this.
|
|
1083
|
+
while (index > 0 && max < this.newCycle) { // && max < _this.newCycle
|
|
1081
1084
|
index--
|
|
1082
1085
|
max += ret[index]
|
|
1083
1086
|
}
|