ふぁぼが空の時にクラッシュしていた問題を修正

This commit is contained in:
harukin-DeskMini
2023-02-06 12:06:21 +09:00
parent 3137d50e24
commit 655f174321
3 changed files with 20 additions and 4 deletions

View File

@@ -37,7 +37,6 @@ export const StationDeteilView = (props) => {
});
if (data.length == 0) {
setTrainBus();
return () => {};
}
setTrainBus(data[0]);
}, [currentStation]);