宇多津関係の挙動を変更
This commit is contained in:
@@ -21,12 +21,17 @@ export const findReversalPoints = (array, stopStationIDList) => {
|
||||
}
|
||||
// 駅間の場合
|
||||
if (array.length == 2) {
|
||||
const allThroughStation = stopStationIDList.map((d) => {
|
||||
if (
|
||||
(array[0] == "M12" && array[1] == "Y09") ||
|
||||
(array[0] == "Y09" && array[1] == "M12")
|
||||
)
|
||||
const allThroughStation = stopStationIDList.map((d, index, arrays) => {
|
||||
if (array[0] == "Y09" && array[1] == "M12") {
|
||||
return d[0] == "M12" ? true : false;
|
||||
} else if (array[0] == "M12" && array[1] == "Y09") {
|
||||
if (index) {
|
||||
if (arrays[index - 1][0] == "M12") {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
let returndata = false;
|
||||
d.forEach((x) => {
|
||||
|
Reference in New Issue
Block a user