宇多津関係の挙動を変更

This commit is contained in:
harukin-expo-dev-env
2025-09-24 12:55:30 +00:00
parent e05da6e2d3
commit 211e361285
2 changed files with 17 additions and 6 deletions

View File

@@ -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) => {