diff --git a/components/駅名表/Sign.js b/components/駅名表/Sign.js index 3d0484c..71f7ae7 100644 --- a/components/駅名表/Sign.js +++ b/components/駅名表/Sign.js @@ -145,10 +145,10 @@ const NexPreStationLine = ({ nexStation, preStation }) => { return ( - {preStation && ( + {preStation ? ( <> - {preStation.StationNumber && ( + {preStation.StationNumber ? ( { + ) : ( + <> )} + ) : ( + <> )} - {nexStation && ( + {nexStation ? ( <> - {nexStation.StationNumber && ( + {nexStation.StationNumber ? ( @@ -184,9 +188,13 @@ const NexPreStationLine = ({ nexStation, preStation }) => { + ) : ( + <> )} + ) : ( + <> )} diff --git a/menu.js b/menu.js index 8e7c7f8..e8de24d 100644 --- a/menu.js +++ b/menu.js @@ -128,7 +128,6 @@ export default function Menu(props) { } } else { setCurrentStation(undefined); - StationBoardAcSR.current?.hide(); } }, [location, originalStationList]);