Commit e51f95fe authored by wangxuelai's avatar wangxuelai

''

parent fd6d7df6
......@@ -976,7 +976,7 @@ class ClassDetailForm extends React.Component {
render: (text, record, index) => {
return (
<div>
{record.times.map(ele => <div>{ele}</div>)}
{record.times && record.times.map(ele => <div>{ele}</div>)}
</div>
);
},
......
......@@ -75,7 +75,7 @@ class ClassStatusChangeModal extends React.Component {
render: (text, record, index) => {
return (
<div>
{record.school_teachers.map(ele => ele.nickname).join(',') }
{record.school_teachers && record.school_teachers.map(ele => ele.nickname).join(',') }
</div>
);
},
......
......@@ -415,7 +415,7 @@ class ClassMgtForm extends React.Component {
render: (text, record, index) => {
return (
<div >
{record.school_teachers.map(ele => ele.nickname).join(',') }
{record.school_teachers && record.school_teachers.map(ele => ele.nickname).join(',') }
</div>
);
},
......
......@@ -207,7 +207,7 @@ class GoodsAddModal extends React.Component {
{ currentIndex >= editCouponInfo.banner.length && editCouponInfo.banner.length > 0 &&
<div className={pageStyle.smallImgBox}>
<Icon className={pageStyle.smallImgBoxClose} onClick={this.imgCancelUpdate} type="close" />
{editCouponInfo.banner.map((img, i) => (
{editCouponInfo.banner && editCouponInfo.banner.map((img, i) => (
<div className={pageStyle.smallImgItem}>
<div className={pageStyle.smallImgItembox}>
<img alt="" src={imagify(img)} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment