念のためtrycatch設定

This commit is contained in:
harukin-OneMix4 2023-12-23 04:43:45 +09:00
parent 5678ad5b35
commit 6c3b186c9b

View File

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