念のためtrycatch設定
This commit is contained in:
parent
5678ad5b35
commit
6c3b186c9b
@ -96,6 +96,7 @@ export const EachTrainInfo = ({
|
||||
return StationNumbers[0];
|
||||
});
|
||||
function findReversalPoints(array) {
|
||||
try {
|
||||
// arrayは現在位置の駅ID(駅在宅の場合は1つの配列、駅間の場合は2つの配列)
|
||||
// stopStationIDListは停車駅の駅IDの配列
|
||||
if (!stopStationIDList.length) return [];
|
||||
@ -203,6 +204,9 @@ export const EachTrainInfo = ({
|
||||
|
||||
return [];
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
// 使用例
|
||||
const points =
|
||||
|
Loading…
Reference in New Issue
Block a user