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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.58",
3
+ "version": "0.1.60",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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.max) { // && max < _this.newCycle
1083
+ while (index > 0 && max < this.newCycle) { // && max < _this.newCycle
1081
1084
  index--
1082
1085
  max += ret[index]
1083
1086
  }
@@ -161,6 +161,7 @@ export default class RingDataModel {
161
161
  let currPhase = this.phaseList.filter((item) => {
162
162
  return item.id === stg
163
163
  })[0]
164
+ if (!currPhase) return
164
165
  if (currPhase !== undefined) {
165
166
  directionList = [...currPhase.direction, ...directionList]
166
167
  }