diff --git a/components/ActionSheetComponents/EachTrainInfo.js b/components/ActionSheetComponents/EachTrainInfo.js index 380c9d2..74fd454 100644 --- a/components/ActionSheetComponents/EachTrainInfo.js +++ b/components/ActionSheetComponents/EachTrainInfo.js @@ -666,7 +666,7 @@ export const EachTrainInfo = ({ > {station} - {points.findIndex((d) => d == index) >= 0 ? ( + {points && points.findIndex((d) => d == index) >= 0 ? ( { AS.getItem("iconSwitch").then(setIconSetting); AS.getItem("mapSwitch").then(setMapSwitch);