diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx index 54896fa..c0d7dd3 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/AddModal.jsx @@ -264,7 +264,7 @@ function AddModal(props) { </Button> </div> <Divider /> - {effectiveDateList.map((item, index) => { + {effectiveDateList?.map((item, index) => { return ( <EffectiveDate disable={item.status === "disable"} diff --git a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx index e04ce3c..932f20b 100644 --- a/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx +++ b/src/pages/OutRoadMgm/OutSegmentMgm/ChargeRulesMgm/Detail.jsx @@ -85,7 +85,7 @@ function Detail(props) { </Descriptions> <Divider /> {effectiveDateList && - effectiveDateList.map((item, index) => { + effectiveDateList?.map((item, index) => { console.log(item); return <EffectiveDetail record={item} key={index} />; })}