恐らく関連列車ボタンが動作しないバグを修正

This commit is contained in:
harukin-OneMix4
2024-02-14 01:28:24 +09:00
parent 6b12dcbcf6
commit fe8df6af2e
3 changed files with 14 additions and 8 deletions

View File

@@ -43,6 +43,7 @@ export const EachTrainInfoCore = ({
originalStationList,
openStationACFromEachTrainInfo,
from,
setTrainInfo,
}) => {
// const [actionSheetHorizonalScroll, setActionSheetHorizonalScroll] = useState(false);
@@ -198,12 +199,16 @@ export const EachTrainInfoCore = ({
originalStationList,
from: "AllTrainDiagramView",
};
SheetManager.hide("EachTrainInfo").then(() => {
//0.1秒待機してから開く
setTimeout(() => {
SheetManager.show("EachTrainInfo", { payload });
}, 1);
});
if (setTrainInfo) {
setTrainInfo(payload.data);
} else {
SheetManager.hide("EachTrainInfo").then(() => {
//0.1秒待機してから開く
setTimeout(() => {
SheetManager.show("EachTrainInfo", { payload });
}, 1);
});
}
};
return (
<View